Welcome Guest, Not a member yet? Register   Sign In
$this->blog_model->func() and $this->blog->func()
#5

[eluser]wiredesignz[/eluser]
[quote author="steelaz" date="1254100228"]Don't forget that if you use $this->blog for a model, you can't name your controller "Blog".[/quote]

You can use blog as a model alias name and have a blog controller class, as PistolPete suggests above. (but it may be confusing)


Messages In This Thread
$this->blog_model->func() and $this->blog->func() - by El Forum - 09-26-2009, 04:31 PM
$this->blog_model->func() and $this->blog->func() - by El Forum - 09-27-2009, 12:58 AM
$this->blog_model->func() and $this->blog->func() - by El Forum - 09-27-2009, 08:40 AM
$this->blog_model->func() and $this->blog->func() - by El Forum - 09-27-2009, 02:10 PM
$this->blog_model->func() and $this->blog->func() - by El Forum - 09-27-2009, 02:24 PM
$this->blog_model->func() and $this->blog->func() - by El Forum - 09-27-2009, 02:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB