Thanks, the create() thing worked
Dont mind me, this has just been a steep learning curve and I was
getting a little grumpy :(
On May 29, 9:21 pm, clemos [EMAIL PROTECTED] wrote:
Hi Sanfly
You must reset the Model on every loop recursion; your save function
would look like this :
Only one thing : A gentleman.
I a person use a forum It's for learn and not to say that your
framework is a crap.
If I use Cakephp maybe it's because I think that is light-years ahead
of other frameworks.
I post my code so you can see if I use good coding practices.
class User extends AppModel
Try shadowbox:
http://mjijackson.com/shadowbox/
can be used with both Prototype and jQuery (and others). I'm hoping
cake will go jQuery one day..
On May 29, 8:12 pm, Lance Willett [EMAIL PROTECTED] wrote:
I'm making an app where I need to be able to have a link that when
clicked, dims the
On May 29, 6:42 pm, Kyle Decot [EMAIL PROTECTED] wrote:
I'm making an app where I need to be able to have a link that when
clicked, dims the windows(like lightbox) and then brings up an ajax
calendar. I know that lightbox is for photos, so does anyone have any
suggestions on apps that could
Sorry there is an error I use print_r instead of pr because the debug
is set on 0
On 30 Mag, 09:28, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Only one thing : A gentleman.
I a person use a forum It's for learn and not to say that your
framework is a crap.
If I use Cakephp maybe it's because
On 28 Maig, 06:31, jeff aigner [EMAIL PROTECTED] wrote:
Could you be a little more clear. I'm not sure what escaping values
in $form-input really means.
What I mean is that, by default, most Cake functions escape strings
before outputting them. This means that accentuation and punctuation,
not
On 28 Maig, 08:08, David C. Zentgraf [EMAIL PROTECTED] wrote:
If you mean escaping to HTML entities, just override the automatic
value:
$form-input('nacionalitat', array('value' = html_entities($this-
data['User']['nacionalitat'])));
Thanks, I'll try that when I come back round to this
Try shadowbox:
http://mjijackson.com/shadowbox/
Wow, that one looks cool. And it can use mootools!
I'm hoping cake will go jQuery one day..
I'm hoping cake will go cross-framework - like shadowbox and ExtJS
[though with mootools support too]
Hey, I am trying to integrade templating to allow my users to change
make their own template to use with my e-commerce engine. Now it's
pretty obivious that I can't just let them run php in views so I am
wondering what you guys suggest? I know about Smarty and I've used it
in the past but I am
Hi there,
I came to a problem and I'm really curious how other people manage
such things. I have to build an application in which, admin can extend
a Page model with additional fields.
My idea is to create:
Tables:
- dynamicfields: id, name,type, required,modelname
- dynamicfields_values: id,
http://mondaybynoon.com/examples/suckerfish_hoverlightbox_redux/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this
On May 30, 10:24 am, grigri [EMAIL PROTECTED] wrote:
Try shadowbox:
http://mjijackson.com/shadowbox/
Wow, that one looks cool. And it can use mootools!
I'm hoping cake will go jQuery one day..
I'm hoping cake will go cross-framework - like shadowbox and ExtJS
[though with mootools
hey
Ah, you crazy kids and your concerns about the speed of Cake. Back in
my day, we looked at all factors of an application before we started
blaming the code, since the database would inevitably be the
bottleneck unless we had written really shitty code or were actually
doing
Hey,
Only one thing : A gentleman.
I a person use a forum It's for learn and not to say that your
framework is a crap.
Who said something about crap ?
If I use Cakephp maybe it's because I think that is light-years ahead
of other frameworks.
You're right here ;)
I post my code so you can
Hi Abhimanyu,
The thing is that I want to know it on the live environment.
The quantity of content in the database is slightly different then on
my development environment.
Anyway. Can you advise in a good debugger that has this tool?
On May 29, 7:13 pm, Abhimanyu Grover [EMAIL PROTECTED]
Hi
I have posted this to cakeBin so it is easier to read:
http://bin.cakephp.org/view/7031334
My problem is that it saves the Attachment file and entry but the
foreignkey (in this case foreign_id) does not get saved.
#
Using CakePHP nightly from 28/5/08
#
on Mac os X apache
#
#
#
#
DEBUG
Remeber that debug_backtrace() is a very expensive function to call!
It might have a significant slowdown on your app's performance, even
if it is just in debug mode.
Anyways, you just need to implement a custom datasource and override
the logQuery() method.
[assuming you're using MySQL - if
That is just great! Of course you have to overwrite. Didn't think of
that. Thanx GriGri
On May 30, 2:17 pm, grigri [EMAIL PROTECTED] wrote:
Remeber that debug_backtrace() is a very expensive function to call!
It might have a significant slowdown on your app's performance, even
if it is just
I am trying to enter two vies inside of another view but only the
first one renders, the second view just spits out a 1. Is there a
way around this, or am I limited to rendering one additional view?
// index.ctp
?php echo $this-render(calendar); ? // renders fine
?php echo $this-render(graph);
Hello friends,
I am building an app .. where there is two different list of
football players... and there will be a timer on the top
when i click the timer the game will start.. then i can click on the
player .. it must update the playername and the time on the timer in
the database and also
using aliases does not help, because the problem occurs before the
as... the problem is the . and the , in the function. This
causes cake to think that a new table/column begins and this messes up
the array, I think.
So if I us an alias, the array still will have the assosiation
New site added at CakePHP in The Wild which is http://www.armenianspot.com
Click on http://groups.google.com/group/cake-php/web/cakephp-in-the-wild
- or copy paste it into your browser's address bar if that doesn't
work.
--~--~-~--~~~---~--~~
You received this
On May 30, 2:43 pm, weckmann [EMAIL PROTECTED] wrote:
using aliases does not help, because the problem occurs before the
as... the problem is the . and the , in the function. This
causes cake to think that a new table/column begins and this messes up
the array, I think.
Assumptions are a
If you keep everything UTF-8 from start to finish you actually
shouldn't have this problem.
That means database tables and fields in UTF-8, your PHP files in
UTF-8 for any possibly hardcoded strings and a proper HTML meta-tag in
your sites denoting UTF-8. I'm working a lot with Japanese and
On 30 Maig, 16:06, David C. Zentgraf [EMAIL PROTECTED] wrote:
If you keep everything UTF-8 from start to finish you actually
shouldn't have this problem.
On this project, everything is UTF-8 including db etc. That solved the
problem, but on an earlier project we had to use iso-8859-1. It was
I'm trying to avoid this snippet of code which appears when validation
fails. The 1 is because the message is zero length.
div class=error-message1/div
The div is forcing a new line in the form, thereby screwing up the
layout. My intention instead is to change the colour of the label
text. I
I've used calulcated fields before with cake and never had this
problem.
What version are you using?
I seem to remember on one ancient version the only way to get it to
work was by starting the field with a parenthesis:
$fields = array(
'Something.here',
Thanks! So simple, I don't believe it... But it works :)
On 29 Maj, 23:47, francky06l [EMAIL PROTECTED] wrote:
Did you copy the PagesController in your application ? If so, create
the beforeFilter and call parent::beforeFiler ..
hth
On May 29, 10:47 pm, Dan Soendergaard [EMAIL PROTECTED]
Hello all,
now that cake 1.2 returns: beforeFilter property usage is deprecated
on
class AppController extends Controller
{
#var $components = array('Auth');
var $beforeFilter = array('funcname');
function funcname()
{
}
}
What is the new way of using this type of
On Fri, May 30, 2008 at 11:08 AM, TWIOF [EMAIL PROTECTED] wrote:
Hello all,
now that cake 1.2 returns: beforeFilter property usage is deprecated
on
class AppController extends Controller
{
#var $components = array('Auth');
var $beforeFilter = array('funcname');
function
Cool thanks, so that's all you need!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL
Your users are going to know html or some programming language? Maybe
you can set up default modules and let your users only choose from
there...
Cheers,
mbavio
On May 30, 4:35 am, Max [EMAIL PROTECTED] wrote:
Hey, I am trying to integrade templating to allow my users to change
make their own
try looking at 'elements' at book.cakephp.org
On 5/30/08, Kyle Decot [EMAIL PROTECTED] wrote:
I am trying to enter two vies inside of another view but only the
first one renders, the second view just spits out a 1. Is there a
way around this, or am I limited to rendering one additional
Is the error-message div inside the span? Just after it?
span div.error-message { display: none; }
span + div.error-message { display: none; }
I assume you're giving the span a classname, which would tighten up
those rules somewhat.
It may be better, though, to deal with this through Cake in
thanks - got the answer of the irc group:
$form-input('adreca',array('error'=false
On 30 Maig, 17:54, b logica [EMAIL PROTECTED] wrote:
Is the error-message div inside the span? Just after it?
span div.error-message { display: none; }
span + div.error-message { display: none; }
I
[EMAIL PROTECTED]
Is that an actual example? That's not escaped at all. It appears to me
to be the result of MySQL's circus-from-hell when working with UTF-8
strings. Search online for mysql utf8 and you'll get *a lot* of hits
about this. One needs to ensure that:
a) the client connection
Why not just create an AdminPage model? Or, keep everything in Page
but make the other fields DEFAULT NULL in pages table?
On Fri, May 30, 2008 at 4:49 AM, spamec [EMAIL PROTECTED] wrote:
Hi there,
I came to a problem and I'm really curious how other people manage
such things. I have to
error('User\uid');
You have a backslash there. Try 'User.uid'
On Thu, May 29, 2008 at 7:05 PM, venkat [EMAIL PROTECTED] wrote:
I use $this-Model-validate()
The error is not getting o/p to the view
in view i am able to o/p the validationErrors using $form-
validationErrors
Any help
Model
It was as near as I could remember. There are others where firefox
shows playing cards instead of kanji etc.
With this project, I went down that path of changing everything to
utf8 including my cat my wife my kids and my underpants. It worked in
the end.
What nobody emphasizes, though, is that
Letters like ñ ç fail the following validation:
'rule' = 'alphaNumeric'
I would say that's a bug, but my head still hasn't grown back from the
last time I said that, so I won't.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Letters like ñ ç fail the following validation:
'rule' = 'alphaNumeric'
I would say that's a bug, but my head still hasn't grown back from the
last time I said that, so I won't.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
On Fri, May 30, 2008 at 12:53 PM, leo [EMAIL PROTECTED] wrote:
Letters like ñ ç fail the following validation:
'rule' = 'alphaNumeric'
I would say that's a bug, but my head still hasn't grown back from the
last time I said that, so I won't.
That is probably because the regex that checks
Hello all!
While playing with Xcache support at the cache engine configuration of
the 1.2 version, I noticed that the variables usually kept in files at
the /cake/app/tmp/cache/persistent folder are know stored as Xcache
variables entries in system shared memory like these:
cake_core_core_paths
Thanks to both of you for your help. That makes a whole lot of sense.
On May 29, 12:44 pm, AD7six [EMAIL PROTECTED] wrote:
On May 29, 6:40 pm, propellorcut [EMAIL PROTECTED] wrote:
I'm trying to find the number of records returned based on a certain
column having the value 11 or 12. I
Guys, first post here...
I got around with a cron routine for updating some database tables
calling a stored procedure.
I then clean the cache for all the controllers involved with this
database update.
This is all kosher.
Except for the elements I cache.
heres the snippet :
//TRIGGER THE
I will on Monday - it's seven pm and time to go shout at the kids.
On 30 Maig, 18:55, Chris Hartjes [EMAIL PROTECTED] wrote:
On Fri, May 30, 2008 at 12:53 PM, leo [EMAIL PROTECTED] wrote:
Letters like ñ ç fail the following validation:
'rule' = 'alphaNumeric'
I would say that's a bug,
I have the following route:
Router::connect('/newrv.cfm', array('controller' = 'rvs', 'action' =
'index', 'new'));
Is it possible to do this, but issue a 301 and redirect to the correct
url? Right now it does the right thing, but no 301 and it stays at /
newrv.cfm in the location bar. Thanks!
On Fri, May 30, 2008 at 6:26 PM, b logica [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED]
Is that an actual example?
I think he meant : Ã(c) , ç , things like that...
++
ClÃ(c)ment
:)
--~--~-~--~~~---~--~~
You received this message because you are subscribed
http://en.wikipedia.org/wiki/Alphanumeric
In case you don't click the above link:
Alphanumeric is a is portmanteau of alphabetic and numeric and is
used to describe the collection of Latin letters and Arabic digits
used by much of western society. There are either 36 (single case) or
62
Which version of cake do you use ?
In 1.2,
to clear a cached file, I use cache::delete('filename', 'config
name');
to clear a complete config, cache:clear(false, 'config_name'); //set
true if you want to clear only the expired files.
hth
On May 30, 6:36 pm, ys [EMAIL PROTECTED] wrote:
Guys,
On May 30, 2:25 pm, Joel Perras [EMAIL PROTECTED] wrote:
http://en.wikipedia.org/wiki/Alphanumeric
In case you don't click the above link:
Alphanumeric is a is portmanteau of alphabetic and numeric and is
used to describe the collection of Latin letters and Arabic digits
used by much of
I want to ask some people, if it is a good idea, in general, passing
to new version...
I want for example to use, some old methods, and Cakephp Engine, often
tells that , this or that is deprecated...
First Question, I will stress you, often ;)...Very thanks
Can I use the old helper $html...,
Hi,
I want to know what is the correct way to add PHP to static pages (the
ones that live in views/pages). I want to use a function across many
pages.
I also want to render an element in my home page, but I don't know
where I should put the code to set the element's variables.
Thanks!
I agree, and I do this myself in dual-language (English/French)
localised sites.
However, I was simply attempting to illustrate to the original poster
that the 'alphanumeric' rule does exactly what it is suppsed to do, as
per the definition of 'alphanumeric'. The regex for multibyte
Hi Guys,
I'm writing a reusable CMS. I'm stuck at some problem, which I believe
is easy to figure out...
I want to overwrite a function SessionHelper::flash() what would be
the easiest way to do so?
Basically, I'm adding different types of message support to it:
success / error / warning.
I thought, quite a while ago when I was discovering cake 1.2, that the
js helper was done for hooking any js lib ..(mootools etc ...)
I did not spent time on it, and I do not see much informations about
it ... Maybe I was completely wrong the usage ..
On May 30, 12:56 pm, dr. Hannibal Lecter
You can use the 4th parameter of session component to set a key on
your message:
$this-Session-setFlash(message, 'default', array(), 'warning');
$this-Session-setFlash(message, 'default', array(), 'error');
and then in view, you can get the message with a key (default:
flash, and Auth
I want to know what is the correct way to add PHP to static pages (the
ones that live in views/pages). I want to use a function across many
pages.
Probably in an helper.
I also want to render an element in my home page, but I don't know
where I should put the code to set the element's
With ajax you can update multiple div, or in your case it seems that a
single div should be enough to get the player name and update
properties of some DOM elements.
For the timer, a periodical updater javascript should handle it..
hth
On May 30, 1:34 pm, CakeME [EMAIL PROTECTED] wrote:
Hello
Using key is fine, but what I dont want to use is this:
$session-flash('warning');
In default.ctp, I want it to output message itself with the different
CSS for different types of messages using $session-flash();
For that I need to change a bit of SessionHelper::flash()
On May 31, 3:12 am,
Well, in the Session-setFlash, you can pass a layout for your
message, that can solve your CSS issue...
Just a hint..
On May 31, 12:50 am, Abhimanyu Grover [EMAIL PROTECTED] wrote:
Using key is fine, but what I dont want to use is this:
$session-flash('warning');
In default.ctp, I want it to
Great, figured it out now :) Thanks
Even though my problem is solved, I'm still looking a way to extend
helper functions like I said.
On May 31, 3:59 am, francky06l [EMAIL PROTECTED] wrote:
Well, in the Session-setFlash, you can pass a layout for your
message, that can solve your CSS
You can create your own helper that extends the session helper.
On May 31, 1:07 am, Abhimanyu Grover [EMAIL PROTECTED] wrote:
Great, figured it out now :) Thanks
Even though my problem is solved, I'm still looking a way to extend
helper functions like I said.
On May 31, 3:59 am,
You can set it in the .htaccess
On May 30, 7:09 pm, Luke [EMAIL PROTECTED] wrote:
I have the following route:
Router::connect('/newrv.cfm', array('controller' = 'rvs', 'action' =
'index', 'new'));
Is it possible to do this, but issue a 301 and redirect to the correct
url? Right now it
You must change a bit when moving from 1.1 to 1.2, pretty much
everything is still in there, just in a different form.
For your form/label issue... try doing this:
echo $form-input('Model.fieldname', array('label' = false));
Maybe if you work your way through the Cookbook (http://
Hey all -
I'm working through a few articles and tutorials in an effort to
migrate at least one of my existing apps into Cake and I got to
wondering about how to handle a scenario that I'm going to run into.
I have several apps that deal with both documents (word docs, pdfs,
etc.) and images.
Well, same thing. That's not escaped, it's a character set mismatch.
On Fri, May 30, 2008 at 1:23 PM, clemos [EMAIL PROTECTED] wrote:
On Fri, May 30, 2008 at 6:26 PM, b logica [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED]
Is that an actual example?
I think he meant : Ã(c) , ç , things like
On Fri, May 30, 2008 at 12:48 PM, leo [EMAIL PROTECTED] wrote:
It was as near as I could remember. There are others where firefox
shows playing cards instead of kanji etc.
That's a character set mismatch, then, as I've suggested.
With this project, I went down that path of changing
You'd probably be best off putting your code in an element and loading
that in your layout.
On Fri, May 30, 2008 at 2:47 PM, Marcelo Ruiz [EMAIL PROTECTED] wrote:
Hi,
I want to know what is the correct way to add PHP to static pages (the
ones that live in views/pages). I want to use a
I think a component would be best. Although, given you have an actual
Image model/controller, I also don't think it's too big a deal that
you have everything in the controller. But doing this sort of stuff in
a component just feels right to me. Also, that should make it easier
to re-use the code
I certainly don't think this should be in the model though (or even a
behavior). Maybe a helper would make sense if you were serving up
different sizes based on the user's request.
Why?
If he is modeling the Image, maybe is because it's a important concept
for his application and must be
This is the way I do it. It keeps my code simple.
http://tinyurl.com/62bang
Cheers,
Adam
On May 31, 10:20 am, Rob Wilkerson [EMAIL PROTECTED] wrote:
Hey all -
I'm working through a few articles and tutorials in an effort to
migrate at least one of my existing apps into Cake and I got to
On Fri, May 30, 2008 at 9:57 PM, Dardo Sordi Bogado
[EMAIL PROTECTED] wrote:
I certainly don't think this should be in the model though (or even a
behavior). Maybe a helper would make sense if you were serving up
different sizes based on the user's request.
Why?
If he is modeling the
73 matches
Mail list logo