Installation and first controller Create a minimum of your vhost ServerName phpway DocumentRoot /var/www/phpway/public If vhost is installed succesfully framework will ask you to create and give writable permissins to log file. touch /var/www/phpway/public/../log/development.log chmod 777 /var/www/phpway/public/../log/development.log Now, edit config/routes.php file and add first route to your controlelr. On default action is index. In our [...]
partial partial with ajax action nothing
$this->render_to_string(‘/folder/_partial_name’); $this->render_to_string(‘/folder/folder/partial_name’)
Reads error message for given model and column $this-> field_error (‘/user/email’)
Runs functions before controller method
Write $this->flash(‘name’, ‘message’) Read print $this->flash(‘name’)
$this->render_component(array(‘controller’ => ‘name’, ‘action’ => ‘name’, ‘param’ => ‘name’));
In Controller render_partial(‘/folder/_partial_name’); } } ?> In View $this->render_partial(‘/folder/_partial_name’);