Skip to content

Instantly share code, notes, and snippets.

@vedovelli
Created July 13, 2012 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vedovelli/3106545 to your computer and use it in GitHub Desktop.
Save vedovelli/3106545 to your computer and use it in GitHub Desktop.
Phalcon PHP example to ask question on Google Group
<?php
class NaturezasJuridicasController extends Phalcon_Controller {
function indexAction(){
$this->view->setVar( 'naturezas_juridicas', Naturezas_Juridicas::find() );
}
function listaAction(){
$this->view->setRenderLevel(Phalcon_View::LEVEL_NO_RENDER);
echo 'vedovelli';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment