CRUD by Developer13 Question |
[eluser]spmckee[/eluser]
Greets, I am using the CRUD method by at Developer13 http://www.developer13.com/index.php/dev...101-models and have a question about how to use it in the controller. I can get the get() functino to work gret, even with the filter settings. But I can only seem to this once and can't return multiple filtered get(). For instance: Code: $this->Mdl_works->seo_url = $seo_url; Code: $this->Mdl_works->active = "1"; Here's the whole thing: Code: function detail($seo_url) Thanks!
[eluser]spmckee[/eluser]
Sure thing D13. Code: <?php
[eluser]Developer13[/eluser]
Oh ok, I can be a little slow at times ![]() You *could* use some type of function in the model to unset the properties. For example: function reset() { unset($this->work_id, $this->seo_url, $this->active); } There's probably a better way to handle this ... but that's what comes to mind.
[eluser]spmckee[/eluser]
Great D13, thanks! I did have to change all the Code: if ($this->seo_url) { Code: if (isset($this->seo_url)) {
|
Welcome Guest, Not a member yet? Register Sign In |