I think there is a way. You can take a look at Router::connect, it accepts a
parameter Router which is a class that extends CakeRoute and you can
implement there something
and you do Router::connect('/some/complicated/link', array('controller' =>
'pages', 'action' => 'display', 'p2'), array('route
I think capital is a city attribute there for should be a column in
the cities table.
The values of the column can be 0 = not a capital, 1= state capital, 2
= country capital, 4 = state and country capital.
It also solve the empty combobox.
Another way to solve the empty combobox is to add "N/A" ro
today i'll try to write some code, and send yo tou...
it's easy... but i have to sleep now :(
see ya
On Aug 19, 2010, at 12:46 AM, weilies wrote:
> Thanks but any example for that?
>
> On Aug 18, 10:27 pm, Jonathan Querubina
> wrote:
>> The "informing" part must be ajax
>> By John Chronus
>>
Thanks but any example for that?
On Aug 18, 10:27 pm, Jonathan Querubina
wrote:
> The "informing" part must be ajax
> By John Chronus
>
> On Wed, Aug 18, 2010 at 11:15 AM, Jonathan Querubina
>
> wrote:
> > You could set a timer in javascript, informing a php that the user is
> > online, if the t
no, I changed the name but still not working~~~
:(~~~
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to
If you just want a simple answer to your question: Yes, there's
probably a way. But my guess is you'd have to hack the Cake core to
use the database for routing rather than the built-in routing class.
That said, if you're editing URIs on a regular basis I wouldn't call
that very SEO-friendly. Once
I followed this:
http://blog.aphexcreations.net/2007/10/enabling-cakephp-11-on-lighttpd-15.html
Also check the comments for improvements etc...
Thanks!
On Fri, Aug 13, 2010 at 11:32 PM, BARTCC wrote:
> if your webserver DOES'NT support mod_rewrite:
> on Apache: (1)(2)
> on windows IIS: (1)(2)
Thanks, Dan!
After I rebaked my models with following relations:
City belongsTo State
State belongsTo Country
State belongsTo City
State hasMany City
Country belongsTo City
Country hasMany State
and updated my views, finally i got a "result"...
Your advice with "containable" i haven't follow t
They are a slightly different format:
http://book.cakephp.org/view/134/Core-Validation-Rules
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 18 Aug 2010, at 21:19, RogerM wrote:
> Many of my modules have underscores in them. Is that the main part of
> the is
I don't know if it has anything to do with the error you are
experiencing, but 1.3 no longer supports debug level 3. Have you
tried setting it to a lower value?
On Aug 18, 4:33 pm, RogerM wrote:
> Lesson learned I guess. I had someone help out building a projects.
> Looks like it was more harm t
cast the value to (float) in the beforeValidate function of the model
On 18 Aug., 22:14, DerBjörn wrote:
> Thanks a lot!...
>
> So for my example it should be the following solution:
>
> 'fieldname' => array(
> 'numeric' => array(
> 'rule'
Lesson learned I guess. I had someone help out building a projects.
Looks like it was more harm then good.
Thanks for you help everyone.
On Aug 18, 3:22 pm, AD7six wrote:
> On Aug 18, 9:23 pm, RogerM wrote:
>
> > I thought about that. I do have a event_contact.php file in models
> > with the fo
Many of my modules have underscores in them. Is that the main part of
the issue?
I was not aware their was newer validation rules.
On Aug 18, 3:14 pm, Jeremy Burns | Class Outfit
wrote:
> I notice that you have var $name = 'Event_contact' too, and other models such
> as Event_contact_person.
On Aug 18, 9:23 pm, RogerM wrote:
> I thought about that. I do have a event_contact.php file in models
> with the following in it:
>
> class Event_contact extends AppModel
To me the puzzle is how you had this app working in 1.1 at all - best
check all your files against http://book.cakephp.org
I notice that you have var $name = 'Event_contact' too, and other models such
as Event_contact_person. Have you changed those? It probably doesn't make any
difference, but the validation rules are old school too - have you tried
commenting those out, just for good measure? Also - it's probably a
Thanks a lot!...
So for my example it should be the following solution:
'fieldname' => array(
'numeric' => array(
'rule' => array('numeric'),
//'message' => 'Your custom message here',
I did try changing to class
"EventContact extends AppModel"
And cleared the /tmp/cache/ files
Still have the same error
On Aug 18, 2:40 pm, Sam wrote:
> Shouldn't it be
> "class EventContact extends AppModel"
> instead of
> "class Event_contact extends AppModel"
>
> On Aug 18, 2:26 pm, Roger
Shouldn't it be
"class EventContact extends AppModel"
instead of
"class Event_contact extends AppModel"
On Aug 18, 2:26 pm, RogerM wrote:
> I notice that it seems the error is coming from /webroot/index.php in:
>
> if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
> trigg
I notice that it seems the error is coming from /webroot/index.php in:
if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
trigger_error("CakePHP core could not be found. Check the
value of
CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to
the directory
I thought about that. I do have a event_contact.php file in models
with the following in it:
array('className' => 'Event',
'conditions'
No clue, I suggest firebugging it. Start turning off css bits until
you find the culprit. Also make sure you don't gave some rogue
javascript setting it to hide. A quick test would be turning off
javascript and refreshing.
Hope that helps,
Nick
On Aug 18, 8:48 am, Charles Bueche wrote:
> I sh
What fields do you have in the Count table? When I get this error it
is because the join was incorrect - usually. Also - when the errors
occur, usually there is a code and a context link that will show you
more of the dump when clicked on and what the conflicting code is. It
should have also prin
On Aug 18, 3:46 pm, RogerM wrote:
> I am trying to update our cakephp 1.1 app to 1.2 as I think going from
> 1.1 to 1.3 might be a big jump.
> I have debug set to 3 and all I get on the screen is this:
>
> Fatal error: Class 'EventContact' not found in "PATH"/cake/libs/
> class_registry.php on l
On Wed, August 18, 2010 4:23 pm, Andras Kende wrote:
> Try this:
> controller:
>
> $this->Session->setFlash('Edited successfully', 'custom_flash',
> array('class' => 'success'));
>
>
> views/elements/custom_flash.ctp
>
> >
>
>
>
>
>
>
> css:
>
> .success {
> background-color: red;
> }
Try this:
controller:
$this->Session->setFlash('Edited successfully', 'custom_flash', array('class'
=> 'success'));
views/elements/custom_flash.ctp
>
css:
.success {
background-color: red;
}
Andras Kende
http://www.kende.com
On Aug 18, 2010, at 4:37 AM, Petter Andreas S
Yes. I did clear out the contents of the cache folder. I just tried it
again with no luck.
Thanks,
Roger
On Aug 18, 9:35 am, Jeremy Burns | Class Outfit
wrote:
> Have you cleared the contents of the folders in /app/tmp/cache (not the
> folders themselves)?
>
> Jeremy Burns
> Class Outfit
>
> jer
I shall add that I didn't touch the relevant CSS part :
input[type=submit] {
display: inline;
font-size: 110%;
width: auto;
}
On 8/18/10 16:44, Charles Bueche wrote:
> Hi,
>
> I have an app that is suddenly missing the button on my
> "edit" form. In fact, it's there, bu
Hi,
I have an app that is suddenly missing the button on my "edit"
form. In fact, it's there, but not displayed :
...
Any reason why I get this "display: none;" ? I don't remember having
touched the form generation, below is the code.
TIA for your hints,
Charles
Form->create('Message');?>
Have you cleared the contents of the folders in /app/tmp/cache (not the folders
themselves)?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 18 Aug 2010, at 14:46, RogerM wrote:
> I am trying to update our cakephp 1.1 app to 1.2 as I think going from
> 1.1 t
On Wed, August 18, 2010 6:40 am, linchuanyu wrote:
> I'm totally new to cakephp
> I can get the index.php of the cakephp welcome and no error or
> warning. So I suspect all set up is ok.
>
> model: Item.php
> create Item extends AppModel{
> var $name = 'Item';
> }
> ?>
>
> controller: Items_C
Im trying to create custom designs for setFlash messages. I've seen
sevral tutuorials for this, like
http://tech.rytis.net/2008/8/27/discover-layouts-for-setflash-method-in-cakephp
, but none of them seems to work for me. I've installed cake 1.3 and
it seems like it's looking for a element view ins
The "informing" part must be ajax
By John Chronus
On Wed, Aug 18, 2010 at 11:15 AM, Jonathan Querubina
wrote:
> You could set a timer in javascript, informing a php that the user is
> online, if the timer stops responding for a time specified, then, tell
> the users he's not online anymore...
>
I am trying to update our cakephp 1.1 app to 1.2 as I think going from
1.1 to 1.3 might be a big jump.
I have debug set to 3 and all I get on the screen is this:
Fatal error: Class 'EventContact' not found in "PATH"/cake/libs/
class_registry.php on line 139
What is going on?
Thanks
Check out th
I'm totally new to cakephp
I can get the index.php of the cakephp welcome and no error or
warning. So I suspect all set up is ok.
model: Item.php
controller: Items_Controller.php
and it always reports missing controller error:
Missing Controller
Error: ItemsController could not be found.
E
$options = $this->Html->link(
$this->Html->image("cal.png"),
'cal.png',
array(
'onClick' => "return showCalendar('".
$htmlAttributes['id'].
"', '".
$this->format.
"'); return false;",
'escape' => false
)
);
On Aug 18,
Hi!
Is there any way to create routes from a database table?
What I mean is this: I have a table that looks like this:
id | link | controller | action |
param
--
1 | /somepag
I don't know :S, seems very strange. You can log in right? (If you try
to enter a view that is not allowed by the Auth component and you are
not logged in you will be redirected).
2010/8/17 Oscar :
> Hello, I'm having problems with the Auth component it seems that the
> session get lost because, I
You could set a timer in javascript, informing a php that the user is
online, if the timer stops responding for a time specified, then, tell
the users he's not online anymore...
By John Chronus
On Wed, Aug 18, 2010 at 11:07 AM, weilies wrote:
> I am planning to create a group chatware using PHP
I am planning to create a group chatware using PHP.
For example, user can join "Super mario" group to start discussion.
But if he logout or directly close the browser, how can system detect
he is no longer exist in the group and notify other user in the same
group, to remove his name from their lis
And yes thread.php and post.php has a belongsTo User.
post.php:
var $belongsTo = array(
'Thread' => array(
'className' => 'Thread',
'foreignKey' => 'thread_id',
'conditions' => '',
Placing "" in view.ctp gives me the error:
Notice (8): Undefined variable: threads [APP\views\threads\view.ctp,
line 1]
If I use the "$thread" variable instead, I get an array with posts and
their user_ids but not the usernames:
"Array ( [Thread] => Array ( [id] => 7 [subject] => c [user_id] => 5
On Aug 18, 12:12 pm, "s...@m" wrote:
> Hello,
> I was updating my Cakephp application from 1.2 to 1.3 and got into a
> compatibility problem.
>
> The Cookbook says:
> vendors/css, vendors/js, and vendors/img
> Support for these three directories, both in app/vendors as well as
> plugin/vendors h
Hello,
I was updating my Cakephp application from 1.2 to 1.3 and got into a
compatibility problem.
The Cookbook says:
vendors/css, vendors/js, and vendors/img
Support for these three directories, both in app/vendors as well as
plugin/vendors has been removed. They have been replaced with plugin
an
43 matches
Mail list logo