Jump to content
Larry Ullman's Book Forums

abderrahmane

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About abderrahmane

  • Rank
    Newbie
  1. Hey guys, I created a controller 'PageController.php' with a default action 'actionShow' like this: public function actionShow( $slug = '' ) { if ( empty( $slug ) ) { $model=Pages::model()->findByAttributes( array( 'slug' => 'accueil' ) ); } else { $model = Pages::model()->find('slug = :slug', array(':slug' => $slug)); if($model===null) { throw new CHttpException(404,'The requested page does not exist.'); } } $this->render('page', array( 'model' => $model, 'slug' => $slug, )); } Then I created a module (and this is where things g
  2. Hi Larry, I don't know if this is the best place to place such a question, but I'm little confused. There is a framewok out there called Laravel, they talking about it so much, some people even excited about it. Which one is the easiest one to start with ?
×
×
  • Create New...