Re: How to force a 404 error?

2007-06-26 Thread Braindead
@Tarique: Thanks for your help. That was exactly what I was searching for! --~--~-~--~~~---~--~~ 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

Re: eclipse and PDT - cannot resolve

2007-06-26 Thread AD7six
On Jun 26, 7:12 am, cakePHP [EMAIL PROTECTED] wrote: hi, I am trying to migrate from gedit to eclipse+PDT for my cakephp development work. Does anyone here this combination working for them? I have spent a week trying to get it working on Ubuntu Sun Java 1.5 (AMD 64 platform, so all

Re: these bloody cannot send session cookies are killing me!

2007-06-26 Thread AD7six
On Jun 26, 7:39 am, Dr. Tarique Sani [EMAIL PROTECTED] wrote: On 6/26/07, inVINCable [EMAIL PROTECTED] wrote: Does anybody have a fix? It seems simple enough, just a simply logout function, but those damn header warnings keep coming up. Any advice? I am reasonably sure that whitespace

Weird Session

2007-06-26 Thread 3s2ng
Our application is acting weird. http://petrolwatch.com.sg/ In Firefox when you login nothing happens. You need to refresh before your name/details will be displayed below the menu. Also includes logout is not working you need to refresh before you can logout But in I.E login is working but

Re: Weird Session

2007-06-26 Thread AD7six
On Jun 26, 9:39 am, 3s2ng [EMAIL PROTECTED] wrote: Our application is acting weird. http://petrolwatch.com.sg/ In Firefox when you login nothing happens. You need to refresh before your name/details will be displayed below the menu. Also includes logout is not working you need to refresh

Re: Weird Session

2007-06-26 Thread francky06l
Do you have some some control in your beforeFilter (app_controller) ? I noticed in on of my app, that the CSS errors could screw up the control there. In this beforeFilter I have checking the controller and the action, actually some CSS errors made an cinoming action to be just App without any

Admin routing in combination with OthAuth

2007-06-26 Thread [EMAIL PROTECTED]
I've got the following code in routes.php: $Route-connect('/admin', array('controller' = 'users', 'action' = 'login')); $Route-connect('/', array('controller' = 'pages', 'action' = 'display', 'home')); $Route-connect('/pages/*', array('controller' = 'pages', 'action' = 'display'));

Re: eclipse and PDT - cannot resolve

2007-06-26 Thread Langdon Stevenson
Hi Vaz I use Eclipse + PDT. I managed to get all of the dependencies right (just by searching out the right packages), but I was having all sorts of problems with it (on Fedora 7, 64 bit, Intel Duo). In the end I uninstalled the Fedora Eclipse package, downloaded and installed the PDT

Re: Admin routing in combination with OthAuth

2007-06-26 Thread Nasko
I'm using othAuth in my current project. The way it worked for me - I don't have this special route specified: $Route-connect('/admin', array('controller' = 'users', 'action' ='login')); Instead, I have my '/admin' url pointing to one of my CMS sections: ### routes.php

Re: horizontal form fields with css

2007-06-26 Thread Siegfried Hirsch
I have the same problem here. I want some input fields in horizontal position and some as usual with the label above the input field. Is there a way to specify a second class for the surrounding div class=input so that I am able the change the css behavior of different input fields. I know I

Re: Admin routing in combination with OthAuth

2007-06-26 Thread Jonathan Langevin
Nasko, thanks very much for that detailed example ;-) On 6/26/07, Nasko [EMAIL PROTECTED] wrote: I'm using othAuth in my current project. The way it worked for me - I don't have this special route specified: $Route-connect('/admin', array('controller' = 'users', 'action' ='login'));

Home page to posts

2007-06-26 Thread Safic
Hi, I am new to cake PHP. I have an issue? I have a home page. This home page is default one from cake php setup. I set 'cakephp/app/webroot' as web root directory for apache 2.2.x. I have a list of href links in header like home and blog. When i click blog href, it should take me to post page

Re: Admin routing in combination with OthAuth

2007-06-26 Thread Nasko
To be precise: If you set the othAuth settings properly you'd get redirected to / admin/users/login if you try to access a page that needs specific permissions. You'd be redirected to admin/users/login if you haven't been logged-in and the action requires specific permissions This way, if

Re: session handling via database

2007-06-26 Thread jyrgen
hi, usually there is no need to modify your php.ini, because it comes with session_handling set to *php*. garbage collection happens automatically. however you have access to certain parameters, for example ini_set(session.gc_probability,1); ini_set(session.gc_divisor,100); will set the

How to: remove trailing slash from domain name ?

2007-06-26 Thread Chris
Hi im sure there is a very simple solution to this but, is there an easy way to remove the trailing slash from the domain name on the cake install. i have mod rewrite enabled. the domain in question is www.penistone-advertiser.co.uk when i type this in it redirects me to

Re: eclipse and PDT - cannot resolve

2007-06-26 Thread Joshua Benner
I've run into that dependency problem that doesn't seem to resolve (even when I have WST installed!). I downloaded PDT and unzipped it into the eclipse directory per the included instructions. Worked fine. cakePHP wrote: hi, I am trying to migrate from gedit to eclipse+PDT for my cakephp

jake

2007-06-26 Thread Amy1234
Hello I use joombla for one of my sites. I am trying to buil an application w/ cake. I don't understand the concept of jake. what does jake do? What do they mean by a bridge? How does it work? Thanks --~--~-~--~~~---~--~~ You received this message because you

Re: cake.generic.css path hack

2007-06-26 Thread chanh.ong
For those that interest on using CakePHP without mod_rewrite I had put together a recap of all the tweaks that I did to get CakePHP work without mod_rewrite. Here is the link to that article: http://support.ongetc.com/index.php?option=com_contenttask=viewid=250Itemid=182 Please let me know if

Re: jake

2007-06-26 Thread chanh.ong
I think the concept was you write your Cake app and jake will make that app available in Joomla as an URL of your Joomla site. On Jun 26, 6:29 am, Amy1234 [EMAIL PROTECTED] wrote: Hello I use joombla for one of my sites. I am trying to buil an application w/ cake. I don't understand the

Re: jake

2007-06-26 Thread Joshua Benner
I use Drake, which is a cousin of Jake (for Drupal). The way Drake works is that it's a module that installs in Drupal. You then configure Drake to point to the Cake applications. Those Cake applications then run seamlessly within the CMS. I would assume Jake works similarly. Amy1234 wrote:

Re: jake

2007-06-26 Thread Amy1234
So jake in essence provides a wrapper for my jake app. Will I need to do layouts for my app or will it use the joomla template? On Jun 26, 9:38 am, Joshua Benner [EMAIL PROTECTED] wrote: I use Drake, which is a cousin of Jake (for Drupal). The way Drake works is that it's a module that

Re: jake

2007-06-26 Thread Joshua Benner
Drake loads both the CMS css as well as the Cake css. Layouts are used as normal. Amy1234 wrote: So jake in essence provides a wrapper for my jake app. Will I need to do layouts for my app or will it use the joomla template? On Jun 26, 9:38 am, Joshua Benner [EMAIL PROTECTED] wrote: I

Sanitize html helper double converting htmlentities

2007-06-26 Thread mac joost
Hi, When I use Sanitize to clean user-input and then create a form using the html helper, 'special characters' like '' get double converted: - Sanitize converts '' into 'amp;', which is then stored in the database. - html helper functions convert 'amp;' into 'amp;amp;'. I would like to use both

IDE PHP and Tools

2007-06-26 Thread Rodrigo Castilho Galvão Ferreira
Hi Cakers, Which is IDE that you use for development PHP? Complete list: http://www.php-editors.com/ Thanks, -- Rodrigo Castilho Galvão Ferreira www.rodrigocastilho.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Sanitize html helper double converting htmlentities

2007-06-26 Thread Jonathan Langevin
Can you give us snippets of your code, so we can see how you're using sanitize and html helper? Are you using Cake 1.2? BTW, sanitize doesn't use htmlentities, it uses a specific REGEX match, appears it functions similar to htmlentities (just fyi :-) ) On 6/26/07, mac joost [EMAIL PROTECTED]

Re: IDE PHP and Tools

2007-06-26 Thread Femi Taiwo
Hi Bakers :-) Zend Development Environment/ Zend Studio. Been using it for about 2months. Really great. Features? Check http://www.zend.com/products/zend_studio Rodrigo Castilho Galvão Ferreira wrote: Hi Cakers, Which is IDE that you use for development PHP? Complete list:

Re: IDE PHP and Tools

2007-06-26 Thread Chris Hartjes
On 6/26/07, Femi Taiwo [EMAIL PROTECTED] wrote: Hi Bakers :-) Zend Development Environment/ Zend Studio. Been using it for about 2months. Really great. Features? Check http://www.zend.com/products/zend_studio OMFG... Can we PLEASE stop having threads where people ask what IDE they are

Re: IDE PHP and Tools

2007-06-26 Thread Marcelo Linhares
Hi, Eclipse + PHPEclipse + Aptana... very good! 2007/6/26, Femi Taiwo [EMAIL PROTECTED]: Hi Bakers :-) Zend Development Environment/ Zend Studio. Been using it for about 2months. Really great. Features? Check http://www.zend.com/products/zend_studio Rodrigo Castilho Galvão Ferreira

Re: Sanitize html helper double converting htmlentities

2007-06-26 Thread mac joost
Thanks for the reply. I'm mainly using Cake 1.1. I need to change my templates to use Cake 1.2 and will maybe do this later this week. As for the code, it's quite straight forward: I have a classifieds_controller which adds a classified add to the database: /* part of function save() */

Re: IDE PHP and Tools

2007-06-26 Thread John David Anderson (_psychic_)
This topic has been more than covered on this list, please do not reply to this thread, and instead review what's already been covered. Please. :) -- John On Jun 26, 2007, at 8:28 AM, Femi Taiwo wrote: Hi Bakers :-) Zend Development Environment/ Zend Studio. Been using it for about

Re: Sanitize html helper double converting htmlentities

2007-06-26 Thread Jonathan Langevin
~line 406 of html.php (html helper, cake 1.1) if (!isset($htmlAttributes['value'])) { $htmlAttributes['value'] = $this-tagValue($fieldName); } looks like if you do the following, you'll avoid the htmlentities: echo $html-input($modelName./. $key,

Re: How to: remove trailing slash from domain name ?

2007-06-26 Thread Grant Cox
Well, I hope you don't find it too annoying, otherwise browsing the web might be a painful experience. Have you actually seen a website that doesn't do this? Please note I am talking about top level domains here, not folder names (which are done with a redirect).

Re: How to: remove trailing slash from domain name ?

2007-06-26 Thread Jonathan Langevin
There shouldn't be any seo effect either. On 6/26/07, Grant Cox [EMAIL PROTECTED] wrote: Well, I hope you don't find it too annoying, otherwise browsing the web might be a painful experience. Have you actually seen a website that doesn't do this? Please note I am talking about top level

Re: cake.generic.css path hack

2007-06-26 Thread Grant Cox
The correct way to get Cake to work without mod_rewrite is to uncomment the define ('BASE_URL', env('SCRIPT_NAME')); line from your app/config/core.php , and to delete the .htaccess files. This will use Cake pretty urls, like http://localhost/your_project/index.php?/controller/action instead of

Re: Sanitize html helper double converting htmlentities

2007-06-26 Thread Jonathan Langevin
BTW, to further explain, when tagValue is called, that is when htmlentities is executed. FYI :-) On 6/26/07, Jonathan Langevin [EMAIL PROTECTED] wrote: ~line 406 of html.php (html helper, cake 1.1) if (!isset($htmlAttributes['value'])) { $htmlAttributes['value'] =

Re: Sanitize html helper double converting htmlentities

2007-06-26 Thread mac joost
Hi Jonathan, Thanks for the replies and getting me in a direction. Setting the value key in $html-input() doesn't work. The htmlentities conversion, using the Cake h() function, is done way furtheron ($html-input() calls _parseAttributes() in which calls __formatAttribute()). What I did find

Re: Sanitize html helper double converting htmlentities

2007-06-26 Thread Jonathan Langevin
glad to hear you're closer to the answer, keep us updated :-) On 6/26/07, mac joost [EMAIL PROTECTED] wrote: Hi Jonathan, Thanks for the replies and getting me in a direction. Setting the value key in $html-input() doesn't work. The htmlentities conversion, using the Cake h() function, is

Re: @unlink fails to clear the cache

2007-06-26 Thread bingo
hi problem solved..I download the nightly built of cakephp and the problem was solved. Not sure what was wrong... thanks for all your suggestions Regards, Ritesh On Jun 25, 12:46 pm, bingo [EMAIL PROTECTED] wrote: hi Chris, yes I did that with debug level 2. ClearCache returns true

Re: cake.generic.css path hack

2007-06-26 Thread chanh.ong
I did that but still does not work! Did you try it to see if that work as intended? Thanks On Jun 26, 8:13 am, Grant Cox [EMAIL PROTECTED] wrote: The correct way to get Cake to work without mod_rewrite is to uncomment the define ('BASE_URL', env('SCRIPT_NAME')); line from your

Re: these bloody cannot send session cookies are killing me!

2007-06-26 Thread Gustavo Carreno
On 6/26/07, AD7six [EMAIL PROTECTED] wrote: On Jun 26, 7:39 am, Dr. Tarique Sani [EMAIL PROTECTED] wrote: On 6/26/07, inVINCable [EMAIL PROTECTED] wrote: Does anybody have a fix? It seems simple enough, just a simply logout function, but those damn header warnings keep coming

Re: cake.generic.css path hack

2007-06-26 Thread chanh.ong
I would rather spending time using Cake to build cake app rather than going through hacking Cake. It is very time consuming and frustrating but I need to get Cake to work without mod_rewrite. If you can show me how to edit Cake configuration and work wihtout mod_rewrite I would love to see it

Re: these bloody cannot send session cookies are killing me!

2007-06-26 Thread John David Anderson
On Jun 25, 2007, at 8:19 PM, inVINCable wrote: Well, I fixed the original problem, but now after setting my logout function, the redirect will not work. I remember there is some way to fix this but I cannot seem to remember. The logout function looks like this. function logout() {

Re: cake.generic.css path hack

2007-06-26 Thread Chris Hartjes
On 6/26/07, chanh.ong [EMAIL PROTECTED] wrote: I would rather spending time using Cake to build cake app rather than going through hacking Cake. It is very time consuming and frustrating but I need to get Cake to work without mod_rewrite. If you can show me how to edit Cake configuration

Re: session handling via database

2007-06-26 Thread peterhf
Yesterday afternoon I posted a reply to Chris' post but apparently my post was lost! I had emptied the session table of all entries and registered a new user for the site. A session record was inserted into the session table for that user. That record is still in the table this morning. It is

View::controller is not initialized in the constructor

2007-06-26 Thread migloth
I recently downloaded CakePHP release 1.2. When I attempted to access the $controller member of the View object ($this-controller), I get a message similar to the following. Fatal error: Call to a member function on a non-object in /somesite/ htdocs/app/views/elements/someElement.thtml on line

Re: View::controller is not initialized in the constructor

2007-06-26 Thread John David Anderson
On Jun 26, 2007, at 10:43 AM, migloth wrote: I recently downloaded CakePHP release 1.2. When I attempted to access the $controller member of the View object ($this-controller), I get a message similar to the following. Fatal error: Call to a member function on a non-object in /somesite/

Re: cake.generic.css path hack

2007-06-26 Thread chanh.ong
Please don't slam people when they are trying to learn Cake. I have spent lot of time trying to follow the direction and try really hard not to hack and make Cake work with no mod_rewrite. I am not saying people are wrong all I am saying I am not able to get it working as advertise. I also see

Re: View::controller is not initialized in the constructor

2007-06-26 Thread migloth
I was calling component methods using $this-controller-component- someMethod(); Oh well. I'll figure out a different/better way. Thanks. On Jun 26, 11:59 am, John David Anderson [EMAIL PROTECTED] wrote: On Jun 26, 2007, at 10:43 AM, migloth wrote: I recently downloaded CakePHP release

Re: horizontal form fields with css

2007-06-26 Thread Joshua McFarren
You should start with a blank CSS file and define all your own styles and then you wont be guessing what is causing what. This is a CSS issue not a Cake one. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: horizontal form fields with css

2007-06-26 Thread Jonathan Langevin
What you would do, is when you call (Cake 1.2 style) the input method, specify the class to be used $form-input('fieldname',array('class'='floatleft') ); I believe floatleft would be appended to the class 'input' (resulting in 'input floatleft'), but you should test it On 6/26/07, Siegfried

Re: cake.generic.css path hack

2007-06-26 Thread chanh.ong
I must point out couple things though! With the {topcake}index.php and webroot/index.php that need to be change from the default when the need to is not the same as the default cake structure and in the case of sourceforge.net it is still an issue. I wish it would be clearer on how the path are

Re: cake.generic.css path hack

2007-06-26 Thread Chris Hartjes
On 6/26/07, chanh.ong [EMAIL PROTECTED] wrote: Please don't slam people when they are trying to learn Cake. It's not slamming when you point out to someone over and over again that there is another solution and find out if they've actually tried it. Did you try what I suggested? If not, then

Re: cake.generic.css path hack

2007-06-26 Thread chanh.ong
Now I remember why I was digging and eventual hack of Cake! Cake works fine with everything the default setup but when I move cake core to outside of the distro and change in both {topcake}/ index.php and webroot/index.php to point to where cake core is located then I got this error. //

Re: cake.generic.css path hack

2007-06-26 Thread chanh.ong
I see it now! Whenever I move the cake core folder I need to preserve the structure so in my case I need to create a cakecore folder and put cake in it so now it works so great! Now my next thing is figure out why it is not working at sourceforge. It is a piece of Cake! Eventually! On Jun

Re: cake.generic.css path hack

2007-06-26 Thread chanh.ong
ok, I go through one more time and really careful setting the cake configuration and leave everything where they are but just rename .htaccess and it works as advertise. I stand to be corrected! Thanks for your time, patient and attention in this matter. On Jun 26, 10:11 am, chanh.ong [EMAIL

Adding sortid

2007-06-26 Thread Mech7
I am trying to add a sort_id so i can sort items with the drag and drop, but what is the best way to count the exisiting sort_id and add one? Should i write this in a query or is there a function in cake to do this? --~--~-~--~~~---~--~~ You received this

Re: cake.generic.css path hack

2007-06-26 Thread gwoo
If you do not have mod_rewrite AND you have do NOT have your DocumentRoot set to the webroot, you are opening the door to your code. This is a security risk and should NEVER be used in a production environment. --~--~-~--~~~---~--~~ You received this message

External JS in Ajax loaded DIV?

2007-06-26 Thread [EMAIL PROTECTED]
Hi everyone, Just a quick question to see if someone's come across this issue before. I'm using an $ajax-link to fill in the contents of a DIV in my application. This DIV has a link to an external javascript file (which renders a CAPTCHA). It works fine in my non-Ajax tests but when I

Re: cake.generic.css path hack

2007-06-26 Thread chanh.ong
I know it is optimal with the Cake default setting and the mod_rewrite but there are cases that mod_rewrite is simple not available. That is why I am trying to understand Cake configuration to see if I can move thing around and Cake would still work. So far I am able to move cake core out of

Re: Adding sortid

2007-06-26 Thread Jonathan Langevin
can you describe what you're trying to do a bit more in depth? On 6/26/07, Mech7 [EMAIL PROTECTED] wrote: I am trying to add a sort_id so i can sort items with the drag and drop, but what is the best way to count the exisiting sort_id and add one? Should i write this in a query or is there

Re: Admin routing in combination with OthAuth

2007-06-26 Thread [EMAIL PROTECTED]
Totally clear to me. Thenx, Jos On 26 jun, 14:23, Nasko [EMAIL PROTECTED] wrote: To be precise: If you set the othAuth settings properly you'd get redirected to / admin/users/login if you try to access a page that needs specific permissions. You'd be redirected to admin/users/login if

Re: session handling via database

2007-06-26 Thread peterhf
I agree that gc must be working on my site, so I must be misinterpreting how gc works here. I'm using CakePHP so PHP is running. Thanks for the help. Peter - On Jun 26, 12:01 pm, jyrgen [EMAIL PROTECTED] wrote: hmmm. what sort of auth system are you using ? keep in mind that php needs to be

Re: Forbidden Error

2007-06-26 Thread [EMAIL PROTECTED]
Here's what I found after looking at the apache log files. In order for mod_rewrite to work you have to have: Options FollowSymLinks Put that right under the AllowOverride All and it should work. :) On Jun 14, 12:24 pm, umeshnmenon [EMAIL PROTECTED] wrote: Hi francky, Thanks for the reply.

Re: Forbidden Error

2007-06-26 Thread [EMAIL PROTECTED]
I'm running into the same problem. I *think* it has to do with mod_rewrite but I'm not sure about that. Anyone know? On Jun 14, 12:24 pm, umeshnmenon [EMAIL PROTECTED] wrote: Hi francky, Thanks for the reply. How do we know on which user the apache runs? I tried with ls -la on the apache

cake 1.2, caching elements, a suggestion

2007-06-26 Thread francky06l
Hi All I am digging in cake 1.2 and discover great functionalities such as the caching for the elements. I was wondering if the following changes make sense. I have a model fieldattribut that belong to fielddef. Fielddef represent a field in my application, such as car brand for example. It's

Re: Adding sortid

2007-06-26 Thread Mech7
I have an extra column in my table called sort_id now with each new entry I would like it to have one number higher then the current one in the database, i suppose i could do a count in mysql and then add 1 and insert it. But i don't know if there would be a better way in cakephp? On Jun 26,

Nested sortables / drag and drop?

2007-06-26 Thread Mech7
Does anybody know if there is an example somwhere which shows how to create a nested sortable with the ajax helpers and scriptaculous.. Like for example this one from mootools: http://youmuppet.com/wp-content/uploads/2007/04/mootree.html --~--~-~--~~~---~--~~

ACL trouble: Listing AROs that have a 'read' access to an ACO

2007-06-26 Thread Ramon Torres
I want to list all AROs that have 'read' access to an specific ACO. Is there a simple way to do that? Thanks, Ramon Torres --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group,

Re: session handling via database

2007-06-26 Thread jyrgen
hmmm. what sort of auth system are you using ? keep in mind that php needs to be running in order to call gc. there's not going to be a gc call without noboby using the site. do you have alternative accounts for testing ? try the following : reload your login page a couple of times (consider

help in modeling

2007-06-26 Thread M
Hello, I have the following model to implement, but I do not know how to do it with CakePhp 1) A user has many items 2) items can be weapons, armours, food. Any different type of items has a different table, with different attributes (for example, weapons have damage attributes, armours have

?= and PHP5

2007-06-26 Thread gabordemeter
I'm mainly an MVC ( Ruby / Rails / CakePHP) guy myself but I just inherited a plain PHP app...The head.php file in the app says: title ?= CLIENT ? /title CLIENT is defined in settings.php as vmb. Now, if I run the app on a server running php4, I get the following html rendered: title vmb

Re: help in modeling

2007-06-26 Thread Howard Glynn
On 6/26/07, M [EMAIL PROTECTED] wrote: Hello, I have the following model to implement, but I do not know how to do it with CakePhp 1) A user has many items 2) items can be weapons, armours, food. Any different type of items has a different table, with different attributes (for example,

Re: External JS in Ajax loaded DIV?

2007-06-26 Thread Femi Taiwo
Hi, Though I haven't tried thesemyself, but i think you shd take a look at http://ajaxpatterns.org/On-Demand_Javascript, esp. JSAN or Dojo, you may need to also strip out what you don't need to reduce the overall size... Cheers Femi [EMAIL PROTECTED] wrote: Hi everyone, Just a quick

Re: ?= and PHP5

2007-06-26 Thread gwoo
in php5 short tags are disabled by default. You need to change the php.ini. --~--~-~--~~~---~--~~ 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

Re: cake 1.2, caching elements, a suggestion

2007-06-26 Thread gwoo
there is an enhancement ticket for this. --~--~-~--~~~---~--~~ 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

Re: Home page to posts

2007-06-26 Thread gwoo
do you have any code to show? --~--~-~--~~~---~--~~ 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

Re: cake 1.2, caching elements, a suggestion

2007-06-26 Thread francky06l
Thanks Gwoo, I did not check the tickets list. For now I will implement this without caching. Thanks again On Jun 27, 12:05 am, gwoo [EMAIL PROTECTED] wrote: there is an enhancement ticket for this. --~--~-~--~~~---~--~~ You received this message because you

Re: dukudu.de made with CakePHP

2007-06-26 Thread unimatrixZxero
Taking this slightly off-topic: Why do people do clones of highly successful sites? I mean is it really worth it? In dukudu's case I can see the point Twitter isn't localized. But in general why should it be a good idea? On Jun 24, 6:25 pm, Jonathan Langevin [EMAIL PROTECTED] wrote: sharp

Re: ?= and PHP5

2007-06-26 Thread Jonathan Langevin
additionally, short tags are used for other languages, so it's best to avoid them if possible. I believe XML is one such language On 6/26/07, gwoo [EMAIL PROTECTED] wrote: in php5 short tags are disabled by default. You need to change the php.ini.

Query returning random number of rows

2007-06-26 Thread Vinicius Pinto
I have a method that select some data using findBySql and display them in a view. The query should return 2 rows, but I noticed that sometimes it returns 2 rows and sometimes just 1 row. The SQL is the same and the database isn't being changed. I setted DEBUG to 2 but couldn't find anything

Re: dukudu.de made with CakePHP

2007-06-26 Thread Felix Geisendörfer
Why do people do clones of highly successful sites? Guess we reached Peak-German-Engineering : /. VW's are made in Mexico, Duduku copies twitter and let's not get into politics either. Anyway, the reason is easy $$$. Another example of fellow Germans playing the copy-cat game:

Re: cake.generic.css path hack

2007-06-26 Thread Jon Bennett
I know it is optimal with the Cake default setting and the mod_rewrite but there are cases that mod_rewrite is simple not available. That is why I am trying to understand Cake configuration to see if I can move thing around and Cake would still work. So far I am able to move cake core out

Re: dukudu.de made with CakePHP

2007-06-26 Thread Jonathan Langevin
if it's a popular site, then that means it did something right, so they try to clone since they don't have enough imagination to create their own popular site. you can often make money selling the clone. also, if you setup the clone to be similar to the original (similar style domain, appearance,

Re: eclipse and PDT - cannot resolve

2007-06-26 Thread Langdon Stevenson
Hi Vaz Langdon - one thing I noticed with PDT all-in-one bundle is that it may not be x86-64 but I am glad it is working on your 64-bit Intel/ Fedora environment. It is a little while since I set it up, and I honestly can't remember what issues I had. However, I think that I may have had

Re: cake.generic.css path hack

2007-06-26 Thread nate
Please take your article down, so that those who come after you will not be lead astray by these false teachings. Thanks. On Jun 26, 3:04 pm, chanh.ong [EMAIL PROTECTED] wrote: I know it is optimal with the Cake default setting and the mod_rewrite but there are cases that mod_rewrite is

a problem about SESSION

2007-06-26 Thread [EMAIL PROTECTED]
Help: i got a strange problem about session . i have there controllers : users , infos,comments. in users controller: $this-Session-write('User', $someone['User']); in any controller views $ layout $this-Session- read('User.username') works well . but in infos controller 's function

Re: cake.generic.css path hack

2007-06-26 Thread chanh.ong
Sure! I keep the article private for my reference on area that I struggle before. putting webroot in htdocs would be an option but I am trying to look at from the point of ease of distribution my app. The current Cake distro setup is nice for people that develop Cake app for not so good for

Admin Routes. Your advice?

2007-06-26 Thread Contrid
Hi there, I would like to get some feedback on a specific approach I'm taking. I don't know if this is normal and if it's good (CakePHP) coding practice, since this is my first CakePHP application. I have added a route in my /app/config/routes.php document. It looks like this : $Route -

Re: requestAction, modularity and multiple forms in one view

2007-06-26 Thread abba bryant
I have a variety of forms in a cms I am developing on one page. I use a hidden form field ( I.E. If I was adding an image I would use a $form-input( Image.AddImage, array( type=hidden, value=1)); ) Then my controller ( typically an action named manage checks to see if

Re: Graham Bird's AJAX tutorial in 1.2.x.x

2007-06-26 Thread abba bryant
Also, since I noticed you said you were using 1.2 and then mentioned default.thtml.. I believe the new 1.2 branches use default.ctp ( note the extension ). It could be that your thtml files are parsing as plain text? dardosordi wrote: From the title i'm guessing you dont have short_tags

Re: $form-file() renders: Array to string conversion [COREcakelibs/view/helper.php, line 296]

2007-06-26 Thread abba bryant
I was getting this same issue. What fixed it for me was making sure the app dardosordi wrote: Can you post your entire model, I want to see your $valdiate array. Try removing the validation from the file field, if that works, try the new version of the upload behaviour