COUNT between two Models

2010-07-25 Thread saavedrajj
Hi everybody, I have 2 models: Restaurant and Zone app/models/restaurant.php array( 'className' => 'Zone', 'foreignKey' => 'zone_id' ) ); } ?> app/models/zone.php array( 'className' => 'Restaurant

Which is the best hosting server for CakePHP?

2010-06-28 Thread saavedrajj
I'm tired about Godaddy.com I want to change all my projects to a full compatible CakePHP hosting server. Please recommend me one without problems with subdomains, installing another php aplication inside cakePHP, etc. Wich one is the best? Your .htaccess files works correctly? THANKS! Check o

Re: Installing another application inside my CakePHP 1.3 app

2010-06-10 Thread saavedrajj
error log. *** Any suggestions? *Remember that I have an godaddy shared linux hosting account On Jun 10, 2:57 pm, saavedrajj wrote: > which one for example? > > On Jun 10, 4:28 am, Bharadwaj Parthasarathy > wrote: >

Re: Installing another application inside my CakePHP 1.3 app

2010-06-10 Thread saavedrajj
which one for example? On Jun 10, 4:28 am, Bharadwaj Parthasarathy wrote: > This may not be the ideal choice, but consider using a sub domain   > [forum.mycakeapp.com] and have it pick up from a separate folder. > > On a totally different note, IMHO godaddy sucks big time. Try getting   > a bett

Installing another application inside my CakePHP 1.3 app

2010-06-09 Thread saavedrajj
Hi, I have a trouble on my godaddy shared linux hosting account. I want to install a PHP forum (phpBB3) in a /forum folder * -app -cake -forum * -plugins -vendors and I want to access this forum using this url: http://www.MyCakeApp.com/forum but, of course, the following error appears: Missing

Re: Dynamic Navigation (Menu and submenu)

2010-06-06 Thread saavedrajj
OMG Hi JeremyPlease if you have some working example there send it to me if you can. saavedrajj -at- gmail.com otherwise... i have to wait :( good luck with the update On 7 jun, 01:21, Jeremy Burns wrote: > That's my article. It needs updating as I have improved it subst

Dynamic Navigation (Menu and submenu)

2010-06-06 Thread saavedrajj
I'm tired of search all the web for the best article about Dynamic Navigation in CakePHP I think this is one of the best articles that i found, but doesn't have a code to download http://articles.classoutfit.com/2009/11/cakephp-dynamic-navigation-bars/ I realized that nobody wants to share how to

Re: Tried to install another application inside cakePHP configuration

2009-07-16 Thread saavedrajj
thanks everybody for the help On 16 jul, 12:31, Travis L wrote: > If you have httpd.conf access, I'd put the directive in there. > > Alias /pma /var/www/html/phpMyAdmin > > ... > > > On Jul 15, 9:11 am,saavedrajj wrote: > > > it works with th

Re: Tried to install another application inside cakePHP configuration

2009-07-15 Thread saavedrajj
it works with this code RewriteEngine on rewritecond %{REQUEST_URI} ^/(name_of_folder_application|fm)/ RewriteRule .* - [S=2] RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] any better idea? --~--~-~--~~~---~--~~ You r

Tried to install another application inside cakePHP configuration

2009-07-13 Thread saavedrajj
Hello everybody, inside my cakePHP configuration i want to install the phpMyAdmin and phpBB forum http://www.cakeapp.com/phpMyAdmin http://www.cakeapp.com/phpBB I have been uploaded, as usual, the applications in my root server directory, but the following error appears: Missing Controller Er

query inside a static page

2009-06-28 Thread saavedrajj
Hi everyone! I have the next problem: I wonder if is possible to put a query result on a static page. I have created a view (views/modelos/some.ctp) who calls some() function who is included inside the controller models_controller.php, that i can see it perfectly in:: http://www.example.com/mo

query inside a static page

2009-06-28 Thread saavedrajj
Hi everyone! I have the next problem: I wonder if is possible to put a query result on a static page. I have created a view (views/modelos/some.ctp) who calls some() function who is included inside the controller models_controller.php, that i can see it perfectly in:: http://www.example.com/mo

function search()

2006-08-10 Thread saavedrajj
Anyone? please? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For mo

Re: id value disappear when I try to edit some entry with blank content

2006-07-26 Thread saavedrajj
I don't think that it's a sql problem the value for disappears when I put an empty value on: input('Tipologia/name', array('size' => '30', 'maxlength'=>'100'))?> tagErrorMsg('Tipologia/name', '* Blank Field')?> --~--~-~--~~~---~--~~ You received this message be

id value disappear when I try to edit some entry with blank content

2006-07-26 Thread saavedrajj
Hi, I been working in some data validation, and my code works fine when I try to add a new entry in my database table (when I try to save an empty record) BUT, I try to do the same thing when I want to edit an entry of my database table. - If I change the old content with a new content works fine

Re: Why my fav.ico does not work properly?

2006-07-22 Thread saavedrajj
thanks for all the replys, but it only works for FIrefox... I don't know the reason why on IE doesn't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake

Re: Why my fav.ico does not work properly?

2006-07-21 Thread saavedrajj
mmm... doesn't work, this is my code http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> Title charset('ISO-8859-1'); ?> css('default'); ?> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Why my fav.ico does not work properly?

2006-07-21 Thread saavedrajj
I just add the line in app/views/layouts/default.thtml and nothing happens if I copy the favicon.ico at app/webroot/img and then add the line: only works on Firefox... What I'm doing wrong? --~--~-~--~~~---~--~~ You received this message because you ar

Wiki: Image_gallery_2

2006-07-18 Thread saavedrajj
I tried to do this example http://wiki.cakephp.org/tutorials:image_gallery_2 but doens't work... anyway, there's another example for making an image gallery on CakePHP? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: PagesController switching layouts

2006-07-18 Thread saavedrajj
thanks for the replys, for static pages I used AD7six example --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

PagesController switching layouts

2006-07-17 Thread saavedrajj
I need to use at least 2 different layouts in my static pages at cake/app/views/pages How can I do this? I dont't understand this thread: http://groups.google.com/group/cake-php/browse_thread/thread/84314667706d38ca/e12788ee919633e8 Thanks --~--~-~--~~~---~--~---

Re: created and modified fields

2006-05-02 Thread saavedrajj
nothing... even with the new cake release, created es a DATETIME type and there no files at tmp/cache/models, it's weird becuase it only happens with my database, i made the blog tutorial and "created" and "modified" fields works fine. --~--~-~--~~~---~--~~ You re

Re: created and modified fields

2006-05-02 Thread saavedrajj
nothing... even with the new cake release, created es a DATETIME type and there no files at tmp/cache/models, it's weird becuase it only happens with my database, i made the blog tutorial and "created" and "modified" fields works fine. --~--~-~--~~~---~--~~ You re

Re: Are you ready for the best Cake yet?

2006-05-02 Thread saavedrajj
Congratulations --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For mo

Re: created and modified fields

2006-05-01 Thread saavedrajj
sorry...: "in order to update the values of these fields without our intervention" --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To

created and modified fields

2006-05-01 Thread saavedrajj
Hi, according to the CakePHP manual, when we add these fields on our database tables, we add some extra cakePHP funcionality in order to update the values of these fields with our intervention, I added these fields in my tables but CakePHP only update correctly the "modified" field, the "created"

Re: Custom empty value for selectTag

2006-04-26 Thread saavedrajj
thanks but doesn't work: I have this in my controller: $this->set('levelID', am(array(0 => 'Select a Level')), $this->User->Level->generateList( null, "name_en ASC")); and only view shows: selectTag('User/level_id', $levelID, null, null, $html->tagValue('User/level_id'), true);?> --~--~-

Custom empty value for selectTag

2006-04-25 Thread saavedrajj
There's a way to asign a name and a value for the empty value of a salecTag? for example: Select a Level // <-- CUSTOM EMPTY VALUE Administrator Editor Guest Regular I considered put this value on the related table, but isn't elegant. --~--~-~--~~~-

Re: Controllers and views inside subfolders

2006-04-25 Thread saavedrajj
Maybe bootstrap.php? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] F

Controllers and views inside subfolders

2006-04-24 Thread saavedrajj
Hi, I'm making a content system that manage Users, Products, etc.. this is how it looks Menu: 1. Users 1.1. User Manager 1.1.1. List users 1.1.2. Add user 1.2. User Subscriptions 1.2.1. List Subscriptions 1.2.2. Add Subscription 2. Products 2.1. Product Manager 2.1.1. List products 2.1.2. Add p

Re: MySQL Standard Character > CakePHP problem

2006-04-24 Thread saavedrajj
works fine :) thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED

Re: MySQL Standard Character > CakePHP problem

2006-04-24 Thread saavedrajj
thanks for the help Gustavo. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROT

Re: MySQL Standard Character > CakePHP problem

2006-04-23 Thread saavedrajj
Well... in my cake app, it seems that works fine (view, edit, add methods) but if I browse my database with some MySQL GUI shows me "áá" instead of "áá" Is that right? or I'm wrong thinking that this data has to be saved as "áá"? I'm thinking again that the best way to control this is on the d

Re: MySQL Standard Character > CakePHP problem

2006-04-23 Thread saavedrajj
oops, it seems that this works: class AppModel extends Model { function __construct() { parent::__construct(); $this->execute("SET NAMES 'UTF8'");} } somebody can explain this? --~--~-~--~~~---~--~~ You received this message because you are subscribed

MySQL Standard Character > CakePHP problem

2006-04-23 Thread saavedrajj
Hi to everyone, I've installed the MySQL 4.1.14 with Standard Character Set latin1 (default value for instalation) on my server. I'm a spanish/portuguese user and I use a lot of characters like á,é,í,ó,ú,ñ,ç,è,ã, etc, etc... I want to know if there are a way to setup or hack the database configu

Submit - Link

2006-04-16 Thread saavedrajj
Hi, how can I substitute these links: link('Yes',"/users/delete_action/{$data['User']['id']}", null, "Are you really sure?"); ?> link('No', '/users/index'); ?> for submit buttons that do the same? --~--~-~--~~~---~--~~ You received this message because you are s

Re: Saving components values with add method

2006-04-10 Thread saavedrajj
Hi Nate, thanks for your answer, but doesn't work, maybe I don't explain the case correctly. First of all I made a controller that returns a unique timestamp: Then, in my UserController I call it with: $this->set('uniqueID', $this->Time->uniqueTimeStamp()); and in my add.thtml view I can use

Saving components values with add method

2006-04-09 Thread saavedrajj
I have a component that returns an unique 14 digit timestamp. I need to use it on the add method of my UserController in order to identify each record as unique, I don't want to use the autoincrement property of mySQL table. UserController: $this->set('uniqueID', $this->Time->uniqueTimeStamp());

links

2006-04-09 Thread saavedrajj
Hi everybody, anybody can tell me how can I make links like: http://localhost/cake/controller:sublink1 http://localhost/cake/controller:sublink2 http://localhost/cake/controller:sublink3 I saw them at the Wiki Tutorials: http://wiki.cakephp.org/tutorials:migration http://wiki.cakephp.org/tutori