Got it all working, thanks for your help.
This is what I needed
'Record.'.$i.'.delete'
On Sep 9, 8:02 pm, Jas mciver.ja...@gmail.com wrote:
OK, trying to get the array layout like yours. I've only been able to
get this close.
Array
(
[Records] = Array
(
[id] = 17
Dear All,
Please help me.
How i can off popup resizable in Mozilla Browser.
--
Regards,
Mohammad Arif Hossen
Software Enginner
Epsilon Consulting and Development Services(ECDS)
www.ecds-tech.com
+88 01714355911
--~--~-~--~~~---~--~~
You received this message
Hello,
I'm new to cakephp :)
Help me to find way how i can made links for (non)privilege users.
example:
[guest] show link to 'login' or 'registar'
[user] can show links 'add' 'edit' 'delete own post'
and [admin] have all rights
Thank you
Dear All,
I have two URL: http://myhost/news/parameter:key, and
http://myhost/news/parameter:/key (parameter value contain /). The first
URL is work fine but the second one is failed!
Does anyone know the solution for named parameter problem that I faced?
Thanks,
Best Regards,
W
Hi
I use Security component and I have a view like this:
?php e($form-create(NULL, array( 'url' = '/test/'))); ?
div
?php echo $form-input('testValue',array('name'='data[testValue]',
'id'='testValue','label' = 'strongTest Value/strong:','options'
= $testValues)); ?
/div
div class=unit lastUnit
Hi albert,
I've been doing my PHP coding in BBedit on the Mac, but thinking that
it would be better if I started to use an IDE for PHP. Can anyone
recommend a good free or low cost one that works well on Mac and with
CakePHP framework?
Gotta be TextMate
--
jon bennett
w:
Hi,
there's a whole section about that in a Book!
http://book.cakephp.org/view/172/Authentication
Faifas
On Thu, Sep 10, 2009 at 00:01, Salines nikola.parad...@gmail.com wrote:
Hello,
I'm new to cakephp :)
Help me to find way how i can made links for (non)privilege users.
example:
I use Coda. Its really nice, has ftp and source control integration
etc. if it had code completion for cake it would be awesome.
On Sep 10, 5:28 pm, Jon Bennett jmbenn...@gmail.com wrote:
Hi albert,
I've been doing my PHP coding in BBedit on the Mac, but thinking that
it would be better
Got it all working, thanks for your help.
This is what I needed
'Record.'.$i.'.delete'
On Sep 9, 8:02 pm, Jas mciver.ja...@gmail.com wrote:
OK, trying to get the array layout like yours. I've only been able to
get this close.
Array
(
[Records] = Array
(
[id] = 17
I you will go for Eclipse...check this outhttp://
bakery.cakephp.org/articles/view/setting-up-eclipse-to-work-with-cake
Tomas
On Sep 9, 6:00 pm, Tokasa toka...@gmail.com wrote:
Hi Bob,
I use on my Mac Eclipse with PHP support.http://www.eclipse.org/pdt/
It does not come with build-in
Use Session from one App to others.
Some people might try to find and research for this.
Some time we work as team, Then the project leader will give u job.
first team to work for Project_1 and second team work for Project_2.
After both team completed their job, they need to combine work into
Hi Miles,
What is wrong on Mukhamad's idea?
But what would you suggest, if you'd like to call some other
controller's method but you dont want to put it globaly in
app_controller??
Thanks
Tomas
On Sep 9, 6:18 pm, Miles J mileswjohn...@gmail.com wrote:
Do not listen to Mukhamad Ikhsan, that
That's the one :o) Happy to help
--~--~-~--~~~---~--~~
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
It makes sense to have one authentication system to handle a full app
as there should be only one users table to authenticate against. If
users need different privileges then you handle that with something as
simple as User Groups or you go more complex with ACL which is built
to handle user
Sorry, to answer your question directly ...
So are you saying that I have only one Auth code in my complete application?
No I said that I am unsure if you can do that, there are a lot more
experienced bakers within this group that may tell you this is
possible, but to me is just seems wrong.
Hi,
I've ported CakePHP TextMate snippets to NetBeans code templates.
Plz, take a look to http://github.com/evilbloodydemon/netbeans-cakephp-bundle/
and send your feedback.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
If you are showing a select list then it seems overkill to also hide a
load of links and add a javascript behaviour to then click on one of
those hidden links.
Just add an observer to the select list and make sure it then fires a
request to something like:
Here is one of my forms which updates a Person model and User
(hasOne), TelephonyNumber (hasMany) and OnlineAddress (hasMany)
Edit View:
echo $form-create('Person');
echo $form-input('Person.id');
echo $form-input('Person.title_id');
echo $form-input('Person.first_name');
echo
Cake's isUnique method handles create update situations well (so
you do not need on = create at all). Are you sure that you make
update? It is the common error - do not provide ID to model when want
update and it makes create instead. And do not respect the key on
of course because it makes
Do you have any experience in PHP development?
If so, you should be able to quickly implement Authentication and move
on from there (hint: read about specifying your own isAuthorized()
controller methods or implementing ACL).
If not, then CakePHP is going to be a steep learning curve if you're
Ah-ha! Containable worked a charm!
thanks!
On Wed, Sep 9, 2009 at 5:42 PM, Dave Maharaj :: WidePixels.com
d...@widepixels.com wrote:
Why not use contain?
'contain' = array(
'Property' = array(
'conditions' = array(
'Property.id' =
How do you know if this is a security component issue as the form is
not being submitted to a Controller/Action to be processed?!?
What should happen if the form submits to the url /test/?
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Impossible. This is one of great benefits of FF. And by the way it is
NOT Cake question.
On Sep 10, 1:40 pm, arif hossen arifhossen2...@gmail.com wrote:
Dear All,
Please help me.
How i can off popup resizable in Mozilla Browser.
--
Regards,
Mohammad Arif Hossen
Software Enginner
On 10 Set, 11:16, WebbedIT p...@webbedit.co.uk wrote:
How do you know if this is a security component issue as the form is
not being submitted to a Controller/Action to be processed?!?
Because if I don't use the Security component the form is correctly
submit.
What should happen if the
A clean white page suggests an error that can't be shown because you
have set the debug level to 0.
Try setting it to 1 or 2 and see if the 'white page' now outputs an
error message.
On Thu, Sep 10, 2009 at 11:32 AM, byqsri marco.rizze...@gmail.com wrote:
On 10 Set, 11:16, WebbedIT
I try to set the debug mode to 1 and to 2 but there is no errors
On 10 Set, 11:37, Bert Van den Brande cyr...@gmail.com wrote:
A clean white page suggests an error that can't be shown because you
have set the debug level to 0.
Try setting it to 1 or 2 and see if the 'white page' now outputs
Hi Bert,
thanks for your reply.
I have tried to raise memory limit from 8MB to 9MB and it works then
OK
Anyway do you have any idea if 9MB memory usage is absolutely NORMAL
or I have to optimize something??
I know I can increase it e.g. up to 128MB but I dont know yet what
hosting
in the element draw_form_item.ctp on line 35 I do only request
action to get data and I pass them to render another element but
the database is almost empty...I am fetching 1-2 records...
is it wrong that I render element from other element? could this
increase the memory??
On Sep 10,
What's the url of the page with the form, and what's the url of the white page ?
Maybe inspect traffic with the FireFox plugin Tamper Data to detect
what's going on ...
On Thu, Sep 10, 2009 at 11:46 AM, byqsri marco.rizze...@gmail.com wrote:
I try to set the debug mode to 1 and to 2 but there
Is 8MB much ... all depends on the functionality of the scripts.
Personally I almost always need higher limits from the moment you
start working with shells/scripts that consume lot's of data.
Seeing that you only read 2 records from the database I suspect there
is some functionality inside the
The url is the same.
With FireFox plugin Tamper Data I get status header Not Found - 404
On 10 Set, 12:14, Bert Van den Brande cyr...@gmail.com wrote:
What's the url of the page with the form, and what's the url of the white
page ?
Maybe inspect traffic with the FireFox plugin Tamper Data
I have used textmate, coda, eclipse, netbeans, and aptana on Mac. For
me,
textmate has worked the best with the cakephp bundle. Although it is
not free,
I feel that I am the most productive on textmate because it uses a
fraction of
the memory of the Java based editors and is faster than coda. The
ah ic..well thanx so much for that information..well i guess i have to
lower my
security level for this matter...one more thing, how can i redirect an
entire page
when im submitting a form using ajax? say for instance
if($this-Model-save(){
$this-redirect('theWholePageToSomeWhereElse');
}else{
I did few more testing :)
I have put this in my script to see how memory is occupied...
http://us2.php.net/manual/en/function.memory-get-usage.php
http://us2.php.net/manual/en/function.memory-get-peak-usage.php
I have compared 2 use cases:
1) very very simple script BAKED by cakephpit was
I using PHP over six year for small sites like http://petergelderblom.com
, for development guestbook, news, gallery, calendar..
Now, move to cakephp and start learn development.
I found this morning solution with linkHelper
http://www.richardathome.com/blog/cakephp-smarter-links
Thanks anyway
Im busy integrating Cakephp and VBulletin for a website im developing.
Has anyone had experience with developing a universal login I can
bounce ideas off with.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP
I have to put my vote in for Coda. Simplicity.
On Sep 10, 4:05 am, jason m ippatsu.ya...@gmail.com wrote:
I have used textmate, coda, eclipse, netbeans, and aptana on Mac. For
me,
textmate has worked the best with the cakephp bundle. Although it is
not free,
I feel that I am the most
$50 off DreamHost hosting!
They have rock solid support with quick turn around, full shell
access, reboot, sudo and much more. You can completely customize your
server and if you ever blow it up, a quick 10 minute reset is
available.
Only pay for the resources you use.
I run ~ 15 domains(about
AHHH
This is like the 1,000,000th post about an IDE.
Please search existing posts before creating duplicate threads!
On Sep 10, 8:22 am, Travis L lele...@gmail.com wrote:
I have to put my vote in for Coda. Simplicity.
On Sep 10, 4:05 am, jason m ippatsu.ya...@gmail.com wrote:
I have
NetBeans for PHP en ZendStudio are the best IDE's for PHP development.
But ZendStudio not is free.
On Sep 10, 8:05 am, jason m ippatsu.ya...@gmail.com wrote:
I have used textmate, coda, eclipse, netbeans, and aptana on Mac. For
me,
textmate has worked the best with the cakephp bundle.
$50 off DreamHost hosting!
They have rock solid support with quick turn around, full shell
access, reboot, sudo and much more. You can completely customize your
server and if you ever blow it up, a quick 10 minute reset is
available.
Only pay for the resources you use.
I run ~ 15
I like this,
Thanks you !
On Thu, Sep 10, 2009 at 11:47 AM, WebbedIT p...@webbedit.co.uk wrote:
If you are showing a select list then it seems overkill to also hide a
load of links and add a javascript behaviour to then click on one of
those hidden links.
Just add an observer to the
Hello,
I'm generate the radio input using the function ?php echo $form-radio
('option', array('Male', 'Female'), array('class'='auto')); ? and
insert the class = auto as attribute. But, only radio input received
this property. I'm need stylize the radio input and the radio label.
Regards,
Because I use the query to mysql for some math.
CakePhp dose't let me use
$paginator-sort('Initial Monthly repayments','initial_monthly_payment');
CODE
php
$initial_monthly_payment = MATH FORMULAS;
/php.
SQL FIELDS QUERY
.
.
$initial_monthly_payment.'` as
On Sep 10, 3:49 am, #2Will willjbar...@gmail.com wrote:
I use Coda. Its really nice, has ftp and source control integration
etc. if it had code completion for cake it would be awesome.
There's something out there I read about in my experimenting with
Coda... here:
Thank you so much for this update. The php 5.3 fixes especially.
--~--~-~--~~~---~--~~
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
For that one there is no one-click simple trick.
I guess you could return an ajax html snippet containing a javascript
that trigger a redirect... unless it gets captured in some security
check.
What I have done though is to have that logic in javascript. Cake
simply returns success or error on
On Sep 10, 1:05 pm, jason m ippatsu.ya...@gmail.com wrote:
The only downside of textmate is that it doesn't really
support any
other encodings besides UTF8.
Jason
Say what? How do you mean Textmate doesn't support any other encoding?
It works quite happily in 8859-1 (aka latin1) and Mac
I don't think is affects your problem but in the code you posted the
html would be invalid. The form and /form should be at the same
hierarchical leven in the html but you have the end inside a div.
A 404 is what you would get is SecurityComponent decided to kick you
in the behind. It is called
Hi Bakers,
I have multiple forms on single page/view, and upon submit, validation
errors are shown for all forms, instead of just for the submitted
form. This is because multiple forms contain identically named fields:
User.email, User.password etc.
How do I force Cake to display validation
Hi
I use Form helper like this:
e($form-input(
'startDate' ,
array(
'id' = 'starDate',
'name' = 'data[starDate]',
'label' = 'strongStart date/strong:' ,
'type' = 'date',
'dateFormat' = 'DMY',
Try this:
class YourModel extends AppModel {
// ...
function hasField($name) {
if ($name === 'initial_monthly_payment') {
return true;
}
return parent::hasField($name);
}
function beforeFilter($query) {
if (!empty($query['order'])) {
On Thu, Sep 10, 2009 at 5:09 AM, Dr. Loboto drlob...@gmail.com wrote:
Cake's isUnique method handles create update situations well (so
you do not need on = create at all). Are you sure that you make
update? It is the common error - do not provide ID to model when want
update and it makes
Well you can't, simply because all the form inputs have the same
name attribute. You will have to change the model for each form.
On Sep 10, 8:12 am, Crux cru...@gmail.com wrote:
Hi Bakers,
I have multiple forms on single page/view, and upon submit, validation
errors are shown for all forms,
Add this to your controllers beforeFilter:
$this-Security-disabledFields = array('testValue');
http://www.milesj.me/blog/read/43/Protecting-Your-Forms-With-The-Security-Component
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Do you have any screenshots of it in action? I was thinking of
switching to netbeans as my IDE, and if this port works wonderfully I
probably will :]
On Sep 10, 1:33 am, evilbloodydemon evilbloodyde...@gmail.com wrote:
Hi,
I've ported CakePHP TextMate snippets to NetBeans code templates.
Plz,
Well whats the problem with putting it in the AppController? Its your
application, so it should be no problem in being global and having
someone access it.
If its an action that outputs the same view and contents, then perhaps
you should rethink how it works.
On Sep 10, 1:09 am, Tokasa
My solution was to extend the Email component into my own component
and add a new delivery type.
Someone recommended that if you set $this-delivery to 'mymailer'
and create the function __mymailer() the EmailComponent will use this
delivery method.
I then used a third party library for sending
Hi,
I am confused that updateAll doesn't trigger behavior callbacks,
mainly because the save functions trigger them and are also used for
updating. Unfortunately there is no afterUpdate callback I could use
for my behavior, so atm I have to trigger afterSave on my behavior
manually after
i wanted to upgrade to 1.3 today
but i ended up reverting to 1.2.5
did anyone experience problems with inflections?
my forms get post to the wrong url
maybe thats just me
i have 2 rules
$uninflectedPlural = array('contact','overview');
but the form helper posts to contacts
the cake1.2
I'm trying to do a simple subtraction as a field in a find statment...
ex.
$this-Model-find('all',array(
'fields' = array(
'Model.x - Model.y as difference'
)
));
but it's not parsing that correctly.
It's doing select `Model`.`x - Model.y as difference` from ...
Am I missing
I see, so we also needed to provide the id of 'children' (TelephonyNumber)
that belongs to the 'parent' (Person). but i have a different problem, in my
case, i also can adding some ShiftDetail (child), on the page, but not to
create a new Shift (parent) just adding the ShiftDetail to the exist
Hello everybody,
I'm new with cakePHP and I have some difficulties understanding the
constrains of url format.
Sorry in advance if my question is stupid or has been already asked
but I couldn't find any matching subject.
Here's my problem.
Let's say I have a Link class which stocks my
For me, I work with Japanese (EUC-JP, SHIFT-JIS, etc), so I really
don't know
about encodings in different languages. Some sites that I work with
are in those
encodings and it would be very difficult to convert all the files to
UTF8. Free
programs like Eclipse, TextWrangler, Smultron, etc can
You should not have same forms on one page. From HTML point all same
elements in them will have same IDs that breaks JavaScriptAJAX. From
Cake point all of them is one form that produce validation messages
spread across them.
On Sep 10, 10:12 pm, Crux cru...@gmail.com wrote:
Hi Bakers,
I have
If I understand you correctly, you would want to use the routing feature in
Cake.
Under config/routes.php, add a reroute rule so that link/edit/id points to
edit(id) action in Link controller.
Lapinski
Airzebeth wrote:
Hello everybody,
I'm new with cakePHP and I have some
so theres no way on switching to normal redirect from ajax redirect?
as what i have understood on your suggestion,correct me if im wrong,
is to have a view containing a plain javascript redirect?
how about this one:
What I have done though is to have that logic in javascript. Cake
simply returns
Hi, I have cache problem with safari 4.
Any one have problem like me?
I’ve tried with this code but does not work. It take me to the
previous page and have still show the text on form.
function beforeFilter()
{
if($this-action == ‘login’) {
$this-disableCache();
}
Header(
Hi,
I'm trying to setup cakephp and smarty. I've gotten it to run without
errors apart from the views are not understanding the {} tags and so
just displaying them as is. I'm assuming this is due to it not finding
the helpers?
My app_controller.php is like so
?php
class AppController
ok so i dont know how to make this work.
i need to save multiple records at once with HABTM rel with it..
model:
OfferedSubject
Course
CourseOfferedSubject
means that an offered_subject may have many course with it and vice
versa..
i read the manual that says to save multiple records using
Hi,
Trying to use the smartyform helper to create forms.
Anyone point me to an example?
Completely lost at the moment
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send
71 matches
Mail list logo