# |
Aug 8th 2008, 06:54 |
franko |
ammadsaleem1: I have very similar problems...try clearing the /app/cache/*/* files... |
# |
Aug 8th 2008, 06:54 |
annnna |
ammadsaleem1: if it throws you that error maybe it's included by default (sorry i dont remember exactly, i'll check) |
# |
Aug 8th 2008, 06:53 |
ammadsaleem1 |
no I included it in the app controller class |
# |
Aug 8th 2008, 06:52 |
annnna |
Matt1: allright, i get it know |
# |
Aug 8th 2008, 06:52 |
Matt1 |
annnna: no, you make your. |
# |
Aug 8th 2008, 06:52 |
annnna |
ammadsaleem1: did you write your own sanitze function? |
# |
Aug 8th 2008, 06:52 |
ammadsaleem1 |
? |
# |
Aug 8th 2008, 06:52 |
ammadsaleem1 |
any help |
# |
Aug 8th 2008, 06:52 |
ammadsaleem1 |
but I am getting this when I upload it to the web server |
# |
Aug 8th 2008, 06:51 |
annnna |
like core.php? |
# |
Aug 8th 2008, 06:51 |
ammadsaleem1 |
the site is working fine locally |
# |
Aug 8th 2008, 06:51 |
Matt1 |
annnna: no, just config file |
# |
Aug 8th 2008, 06:51 |
ammadsaleem1 |
any idea what can be wrong |
# |
Aug 8th 2008, 06:50 |
ammadsaleem1 |
Fatal error: Cannot redeclare class sanitize in /homepages/11/d250922577/htdocs/wsb4994188301/betafinal3/cake/libs/sanitize.php on line 38 |
# |
Aug 8th 2008, 06:50 |
ammadsaleem1 |
hello all I am getting this |
# |
Aug 8th 2008, 06:45 |
annnna |
Matt1: this would go in the bootstrap.php file? |
# |
Aug 8th 2008, 06:43 |
annnna |
i think i will have to implement ARO and ACL first, then figure out this part, once i know how it all works |
# |
Aug 8th 2008, 06:43 |
Matt1 |
http://bin.cakephp.org/view/78732946 |
# |
Aug 8th 2008, 06:43 |
skua |
Matt1 > THANK ! |
# |
Aug 8th 2008, 06:42 |
annnna |
Matt1: and the administration panels should allow the agent to modify only his properties |
# |
Aug 8th 2008, 06:42 |
Matt1 |
You could have that on the configure file. |
# |
Aug 8th 2008, 06:41 |
annnna |
Matt1: yeah, i need the app to be aware of which realestate agency is using. For example, if a contact mail is sent, it should know whose agency got the client |
# |
Aug 8th 2008, 06:41 |
Matt1 |
annnna: so you could have any variable there you like to switch between domains. |
# |
Aug 8th 2008, 06:40 |
Matt1 |
annnna: my example has code not really needed. I could have set those in the configuration file and load it based on the domain. |
# |
Aug 8th 2008, 06:39 |
Matt1 |
annnna: that should work if all you need is the theme switch. but you needed something else too I belive ? |
# |
Aug 8th 2008, 06:38 |
annnna |
Matt1: this is as far as i've got if ( $_SERVER['HTTP_HOST'] == 'johnson....com' ) { $this->theme = 'johnsonrealtor'; } |
# |
Aug 8th 2008, 06:38 |
Matt1 |
skua: var $useDbConfig = 'test'; |
# |
Aug 8th 2008, 06:37 |
skua |
? |
# |
Aug 8th 2008, 06:37 |
skua |
from default to test for example |
# |
Aug 8th 2008, 06:37 |
skua |
how to switch between all pre-configured-database |
# |
Aug 8th 2008, 06:36 |
annnna |
ok, thanks!! it's interesting how you used an array for that |
# |
Aug 8th 2008, 06:36 |
Matt1 |
Dont know about that. But it does work. |
# |
Aug 8th 2008, 06:35 |
Matt1 |
http://bin.cakephp.org/view/1490084862 |
# |
Aug 8th 2008, 06:34 |
annnna |
Matt1: I was worried my architecture for this particular "business need" was conceptually wrong |
# |
Aug 8th 2008, 06:34 |
Matt1 |
Let me get an example for you. |
# |
Aug 8th 2008, 06:33 |
annnna |
Matt1: well, it's great to know someone else is doing the same thing somewhere! |
# |
Aug 8th 2008, 06:32 |
Matt1 |
annnna: I added the variable based on the domain currently in use. |
# |
Aug 8th 2008, 06:32 |
Matt1 |
annnna: got about 7 sites running in different doamins, all using the same app/database. Apperently the hosting company has solved that one. |
# |
Aug 8th 2008, 06:31 |
annnna |
Matt1: now that i got that working, i'm trying to tackle the other problem. If you are in domain1 you are in realtor's 1 site, so you should pass somekind of internal variable to let Cake know which realtor it's delivering content for |
# |
Aug 8th 2008, 06:29 |
annnna |
Matt1: well i think the problem with this is the eventual overwriting in httpd.conf which would leave your sites broken until you realized apache rebuilt itself |
# |
Aug 8th 2008, 06:27 |
Matt1 |
annnna: I worked on a shared server, but the setup looks the same. |