You can't pass javascript (I mean as $javascript->link() ..etc ...) in
a return of an ajax call. Best is to load it into the initial layout.
On Mar 28, 8:50 am, "Steniskis" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Sorry to repeat my question but I try to be more clear. I have updated
> a div with an
Wow! No replies :(
C'mon guys show some enthusiasm?
:)
On Mar 28, 12:14 am, "daddycool" <[EMAIL PROTECTED]> wrote:
> Hello Everyone,
>
> I would like to introduce all of you to the website I just finished
> coding (first phase) alongwith a couple of my friends. The site in
> question is -www.vo
One more new site - www.votigo.com
-daddycool.
On Mar 25, 3:07 am, "savagekabbage" <[EMAIL PROTECTED]> wrote:
> Just letting you guys know about a scheduling tool I'm working on for
> my family's business. I still need to try to write an auto scheduling
> algorithm, but it has some nifty featur
Hi,
Sorry to repeat my question but I try to be more clear. I have updated
a div with an ajax form. In this div updated that is a list, I have no
access to any javascript or ajax.
Besides, the layout used in this action contains those javascript.
Have you any explication or solution ?
Thank yo
Below is an almost exactly similar question and my previous answer. HTH
robert.fulcher wrote:
> I want to use the autocomplete componenet and was wondering how to use
> the options. I want to use it with a lookup field. I have a contact
> that I want to assign a company to. I have it where I ca
We are building a site that needs to support multiple languages -
content ( titles of topics etc), user names and DB strings etc. will
be in multiple languages - including chinese.
>From the information I found on the site, the 1.1 version will not
support this right? Will the alpha version (1.2
On 3/28/07, fredBH <[EMAIL PROTECTED]> wrote:
>
> Hi everyone,
>
> I still having problems with get upload working in my App...
>
> I have found this App ->
> www.sanisoft-demo.com/photoBlog/index.php?url=/posts/add
>
> and its just that i need :P
WOW! You stumbled upon the grave of cheesecake
On 3/27/07, davyke <[EMAIL PROTECTED]> wrote:
> I found these Sql in cheeseCake when i edit a photo's tag, could you
> explain where's the code for this?
The SQLs are generated by CakePHP and not by Cheesecake - I just
supply the array of tag IDs while saving the Photo
HTH
Tarique
--
=
Ajax is 'asynchrounous', meaning you can have many calls at the same
time, meaning you would require multiple start/end time to get what
you want. I could tell you how in a few paragraphs, but the short
answer is much better and way simpler;
1. Get Firefox
2. Get Firebug (and addon to firefox)
t
Next snippet is supposed to show 10 s, each displays the loading
time. Loading time is the difference between endTime and startTime:
startTime and endTime was given by javascript Date.getTime method at
the time of 'loading' and 'complete' for each run of $i. But the
calculated time is always 0, th
I want to use the autocomplete componenet and was wondering how to use
the options. I want to use it with a lookup field. I have a contact
that I want to assign a company to. I have it where I can lookup the
company by name in the autocomplete field. I need to assign a value
of the id from th
I got it work now
--~--~-~--~~~---~--~~
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
Hi Zee
> Any suggestions? othAuth perhaps? oscommerce? hmmm
My preference for authentication id d_auth (passwords not transmitted in
the clear).
I use ACL for access control to both functionality (actions) and to data
I have built a number of sites with osCommerce and Cake (and Drupal) and
f
Whoops! Thanks for the correction. :-)
--~--~-~--~~~---~--~~
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
Right! To clarify a bit more, create two models (OldRider and
NewRider), and one controller (RidersController). In RidersController,
add this just like [EMAIL PROTECTED] said:
var $uses = array('OldRider', 'NewRider');
Then, in your controller you can access both models. Example, $this-
>OldRide
Hello Everyone:
i played with CakePHP for over a year just to see if i like it or not.
well.. i like it alot.
i have read the manual inside out and viewed serverl tutorials.
I am about to build a mission critical, large scale web application.
what would you "fine bakers" suggest to use for securi
Other things to check
1. make sure that all three .htaccess files were copied to the server,
some ftp clients to not copy 'hidden' files to the server, there is
often an option or preference to change this undesired behavior.
2. make sure that the tmp folder was copies/ created on the server
alon
I'm having difficultty setting up 2 models appropriately and am hoping
someone can point me in the right directions. I have 2 tables (and
associated models)
'game_pieces', 'CREATE TABLE `game_pieces` (
`id` bigint(20) unsigned NOT NULL auto_increment,
`games_set_id` bigint(20) unsigned defau
Check in your httpd.conf that you have mod_rewrite enabled, and
AllowOverride All set for your cake folder (or document root if that's
what you are using).
droops wrote:
> Hi,
>
> I am newbie in cake PHP and since couple of days I am struggling with
> proper cake PHP configuration. I am getting t
You just need to place the following at the start of the controller
var $uses = array('OldRider','NewRider');
Then you can use both tables to do whatever you want in your actions.
e.g.
$this->set('old_riders',$this->OldRider->findAll();
$this->set('new_riders',$this->NewRider->findAll();
The y
I have had the damnedest time with this for some reason.
there are no examples that i can find for using more than one table in
the same view.
i have two tables, old_riders and new_riders.
what i want to do is display the list of new riders and then below
that display the list of old riders.
i
Hi Mariano,
On 3/25/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote:
>
>
> Or even better, no parameter needed:
>
> function admin_add()
> {
> return $this->setAction('add');
> }
>
This works a treat, cheers.
Sonic
--~--~-~--~~~---~--~~
You received this m
I already had that line uncommented, right now it seems to sort of run
I'm getting php errors about $javascript not being an object which I
imagine is due to the includes not finding the right paths, seeing as
the IIS server is the server I am going to have to deploy on I do need
to solve this
On 3/26/07, Mariano Iglesias <[EMAIL PROTECTED]> wrote:
>
> Not at all, calling requestAction() from elements/view is perfectly
> acceptable. Though you could also call it from the controller and set a var
> for the view to get, but again, I see no issue on the way you are doing it
> now (as a mat
I searched high and low but couldn't really find a proper answer for
doing this so with a bit of fiddling I managed to get something going.
What I wanted was a way to have the equivalent of
$form->input('Modelb/Modelb',.) but also with the extra column data
in a table.
I didn't get much cl
Hi,
I am newbie in cake PHP and since couple of days I am struggling with
proper cake PHP configuration. I am getting the homepage, but any time
I am trying to get views from outside the homepage I get 404 server
error: "The requested URL /url_path/ was not found on this server." (I
would expect
Nevermind i just went and downloaded a nightly and now it works fine.
so so you know the current stable release isnt good, get the nightly
release instead.
On Mar 27, 11:45 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> No Database table for model NewRider (expected "nnew_riders"), create
No Database table for model NewRider (expected "nnew_riders"), create
it first.
this doesnt seem right to me.
its asking me to create a new table called nnew_riders?
this doesnt compute.
heres my model and my controller for table new_riders.
controller:
model:
this should create a scaffold l
Hello Everyone,
I would like to introduce all of you to the website I just finished
coding (first phase) alongwith a couple of my friends. The site in
question is - www.votigo.com (vot[e]-i-go). I am hoping this should
add great value to your showcase :)
Votigo is an online community that allows
Hi Guys,
On 3/27/07, hydra12 <[EMAIL PROTECTED]> wrote:
>
>
> I prefer the first option, but like I said, I don't have a lot of
> experience with this yet.
Me too. Definitely. I haven't made any plugins myself yet so I can't test
this but have you tried just calling the plugin test files from a
Hi everyone,
I still having problems with get upload working in my App...
I have found this App ->
www.sanisoft-demo.com/photoBlog/index.php?url=/posts/add
and its just that i need :P
I have found the code of this App, but, unhapppiness, the code is too
old(2005)... and dont work anymore, th
thanks for the links but as I got deeper into it I had too much
problems with these two systems overriding themselves.. I'll probably
try to find another way..
btw.. I'll describe my problem shortly, maybe someone tried it before:
I have a cake app with user registration (I use oth_auth for
authen
Hi Guys,
Thanks again for the further suggestions.
@french13: Unless I'm not following what you are suggesting, I don't think
you're following what I'm asking, (in which case I'm not surprised when I
come out with sentences like this one :)
I'm just looking for the best way to minimise code dupl
I am currently using 1.2 with IIS as well. I do not have ISAPI
Rewrite configured for use at the moment and was having similar
problems.
There is a Constant defined in /app/config/core.php that you need to
uncomment on line 40 - define ('BASE_URL', env('SCRIPT_NAME'));
This basically tells cak
> they need to review this and work on it.
>
> A little demanding I think, but if you follow the trac site and search the
> google group you will see references to the latest nightly builds which have
> the fix already added.
Sorry for being so rude. I really appreciate the work that is being
do
I'm just starting out with testing, so I don't have a lot of
experience to draw from, but I think the best way to test a plugin
would be to put the tests and the db-config into the plugin folder.
That would be in keeping with the concept that a plugin is a mini-app
that can be dropped into an exis
you can store them in the session
On 27 mar, 18:31, "RLR" <[EMAIL PROTECTED]> wrote:
> In my addressbook application I have several paged addresses and a
> search form. When I edit an address and save it I redirect the browser
> and loose all parameters (search words etc.)
>
> Is there a cakephp
maybe it's just a typo in your message, the correct url is /admin/
comments/
On 27 mar, 19:00, "RG" <[EMAIL PROTECTED]> wrote:
> I have define('CAKE_ADMIN', 'admin'); defined in the core.php file.
> When I add function admin_index() in my comments controller and
> navigate to /comments/admin I ge
Well, testing of plugins is not (yet) implemented. What do you think
would be the best approach to test plugins?
--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
14 DELETE FROM `CHEESECAKE_photos_tags` WHERE photo_id = '1'
2 0
15 INSERT INTO `CHEESECAKE_photos_tags` (photo_id,tag_id) VALUES
('1','3') 1 0
16 INSERT INTO `CHEESECAKE_photos_tags` (photo_id,tag_id) VALUES
('1','1')
Hi,
bit of a noob so this could well be my problem (isn't it always ;)
I'm doing a little date comparison such as you suggested
> 2)
> $conditions['Post.created'] = 'BETWEEN 2007-02-01 AND 2007-02-28';
> (iirc)
but not getting any results. So I dumped out the contents of the cake
generated S
I have define('CAKE_ADMIN', 'admin'); defined in the core.php file.
When I add function admin_index() in my comments controller and
navigate to /comments/admin I get the Missing Method in
CommentsController error when I should receive the missing view error.
I have used admin routing before withou
You may also want to check Drupal-CakePHP and Joomla-CakePHP integration:
http://dev.sypad.com/projects/drake
http://dev.sypad.com/projects/jake
-MI
---
Remember, smart coders answer ten questions for every question they
In my addressbook application I have several paged addresses and a
search form. When I edit an address and save it I redirect the browser
and loose all parameters (search words etc.)
Is there a cakephp way or best practice to store and retrieve these
url parameters application wide?
Thanks!
--
feelexit, in order to save the data to tags table you must have in the
data returned ($this->data) data relating to the Tag model like this
data['Tag'['Tag'] = array ( 'id' => '1' , 'id' => '2'...)
where ['Tag']['Tag'] contains an array of id's corresponding to tag
id's. You can find more info o
"...the error I get shows that a query ('__sanitize') is being
made to the db. "
I'm not sure, but it sounds like you're accidentally placing
'__sanitize' as a string inside your $data array, instead of the
*results* of that function. This would then get passes through to the
SQL call causing the
for those interested.. after replacing __() with wp__() wordpress
starts together with cakephp without any problems so there are two
functions with the same name.
I just started with it so problems may appear when loading requests..
I'll try it..
--~--~-~--~~~---~--~
What this means is that there is a db connection per user using the
app, so If you add something to a table and get the last insert id, it
will return the last insert id you did on your db connection,
regardless whether there are more users logged in and or manipulating
the db, last insert id's wo
On Mar 27, 4:27 pm, "hydra12" <[EMAIL PROTECTED]> wrote:
> I'm playing with CakeBaker's test suite. Does anybody know if you can
> use it to test plugins?
You know, I was wondering that only yesterday...
AD7six
--~--~-~--~~~---~--~~
You received this message be
another question is , in the posts with tags example, when I am doing
save, only save post table or posts_tags will be saved as well ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to t
Has anybody tried it ?
I followed an example from :
http://www.thinkingphp.org/2006/05/04/using-cakephp-in-external-php-systems-cmss-weblogs-etc/
Nice approach...and everything would be great if not functions with
the same name in wordpress. I did a quick & bad hack for
stripslashes_deep() renami
i still can't find the way to get the ACO corresponding ARO
any help ?
--~--~-~--~~~---~--~~
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
If you're not sure how to manage the layout structure yet, the last
thing you need is medium/advanced tutorials.
Cake is very simple to learn the basics of, and extremely powerful
once you've gotten your head around the conventions.
To be able to help, you'll need to say which version you're pre
make new file, header.thtml in hte component folder.
and in ur layout, renderElement('header'); ?>
--~--~-~--~~~---~--~~
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@
Hello,
I'm a newbie with CakePHP.
How can I manage with layouta structure with a top menu, a main content and a
right content ?
Where I can find some medium / advanced tutorial for cakePHP ?
Is it available an integration with the qooxdoo library (you find it on
sourceforge)
Luca
--~--~
I'm playing with CakeBaker's test suite. Does anybody know if you can
use it to test plugins? Right now, it only sees tests in my app/tests
folder, not in plugins/pluginName/tests. When I put my tests in app/
tests, I get an error because it can't find my models/controllers/etc.
Anybody have a
I have 3 tables
tags
resources
resources_tags
in my controller, i use " print_r ($this->data); " to print out data
structure
Array ( [Resource] => Array ( [title] => hhh [description] =>
[user_id] => 1 ) )
it only has data for Resource, there's no data for Tag.
here's my HTML code.
Hi langdon, [EMAIL PROTECTED],
Thanks for your reply. I checked the group for getLastIsertID and
found many discussion. I also found the discussion where nate has
replied. However I was not sure what does it mean "scoped to the
current database connection". I have asked nate for explanation...
R
Larry E. Masters aka PhpNut írta:
>
> If I upload the new version of my work to the server with DEBUG,0 I
> don't see anything. BUt when I change it to 1 and refreshing, after
> change back to 0 everything is ok. Why? I use 1.2 from svn.
>
>
> Did you upload the app/tmp directory wi
Hello,
If I upload the new version of my work to the server with DEBUG,0 I
don't see anything. BUt when I change it to 1 and refreshing, after
change back to 0 everything is ok. Why? I use 1.2 from svn.
--
Ámon Tamás
--~--~-~--~~~---~--~~
You received this m
> > If I upload the new version of my work to the server with DEBUG,0 I
> > don't see anything. BUt when I change it to 1 and refreshing, after
> > change back to 0 everything is ok. Why? I use 1.2 from svn.
>
> Did you upload the app/tmp directory with all of your models, etc. cached?
> If so tha
FormHelper::input() is a wrapper method that automatically generates
extra output, i.e. error messages, wrapper 's and labels. If
you want just the form element and *not* the extra stuff, you're
better off using the specific method that you want, i.e. $form-
>text( ) or $form->select( ).
On Mar
On Mar 27, 2:56 pm, "double07" <[EMAIL PROTECTED]> wrote:
> Still wrestling with this issue. Managed to contact the author of the
> script and they re-wrote it a bit, but still no joy for me. See
> comments here:http://othy.wordpress.com/2006/06/03/generatenestedlist/
>
> The generateNestedList(
> If I upload the new version of my work to the server with DEBUG,0 I
> don't see anything. BUt when I change it to 1 and refreshing, after
> change back to 0 everything is ok. Why? I use 1.2 from svn.
Did you upload the app/tmp directory with all of your models, etc. cached?
If so that would be
Yes of course, as it was pointed out before form-related methods are moving
into FormHelper.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
Still wrestling with this issue. Managed to contact the author of the
script and they re-wrote it a bit, but still no joy for me. See
comments here: http://othy.wordpress.com/2006/06/03/generatenestedlist/
The generateNestedList() function just produces an empty variable. I
did notice in debug mo
Hi all,
I update a div with a form
echo $ajax->submit('Soumettre', array('url' => '/tournees/search',
'update' => 'tableau_tournees'));
This div contains a list with calls to thickbox. These calls display
other forms to edit or delete the line in the list.
When the page is displayed, all is ok but
On 27 mar, 13:43, "Adrian Maier" <[EMAIL PROTECTED]> wrote:
> On 3/27/07, djiize <[EMAIL PROTECTED]> wrote:
>
> > Hello
>
> > Html helper is the old way, and Form helper the ne cutting-edge one
> > (and I like it a lot ;))
>
> > To get rid of div and label, you can write
> > $this->input('tagname'
> To answer my own question, I've found this open Trac ticket which
> addresses this issue: https://trac.cakephp.org/ticket/1209 looks like
> it's currently slotted for 1.2 release.
check out AD7six's post here
http://groups.google.com/group/cake-php/browse_thread/thread/f23b1825050ad543/01409274
Hi guys,
I've been trying to get master/slave replication set up with my cake
app all morning, but so far am not having much luck.
I found this post regarding it from December on the google group:
http://tinyurl.com/34azu3
My app is set up just like this (using cake 1.1) but all queries are
sti
Check the cake conventions: http://manual.cakephp.org/appendix/conventions
2007/3/27, feelexit <[EMAIL PROTECTED]>:
>
>
> Got table called "posts_tags", I need to have model for this table,
> should I name it to
> post_tag.php
> or
> posttag.php
> or
> postTag.php
>
> and what about class
On 3/27/07, djiize <[EMAIL PROTECTED]> wrote:
>
> Hello
>
> Html helper is the old way, and Form helper the ne cutting-edge one
> (and I like it a lot ;))
>
> To get rid of div and label, you can write
> $this->input('tagname', array('div' => false, 'label' => false));
Thanks for sharing this inf
On Mar 27, 10:50 am, "space_boy" <[EMAIL PROTECTED]> wrote:
> In the 'Complex Find Conditions (using arrays)' section of the Models
> chapter in the manual (http://manual.cakephp.org/chapter/models), it
> is suggested that you can search multiple models using a conditions
> array such as:
>
> arra
Hi
Thanks for advise , I know I have to brush up on my OOP even though I
been programming PHP for over 5 years I still battle with it.
I am actually following the tutorial I found at cakephp and thats
directly copied out.
Im calling in Cakephp like this:
var $components = array ('Pagination',
Hello
Html helper is the old way, and Form helper the ne cutting-edge one
(and I like it a lot ;))
To get rid of div and label, you can write
$this->input('tagname', array('div' => false, 'label' => false));
If you plan to use Cake 1.2, I don't think it's a good idea to
continue with html helpe
Got table called "posts_tags", I need to have model for this table,
should I name it to
post_tag.php
or
posttag.php
or
postTag.php
and what about class file
class Post_tag extends AppModel{}
or
class Post_Tag extends AppModel{}
--~--~-~--~~~---~--~~
You received
In the 'Complex Find Conditions (using arrays)' section of the Models
chapter in the manual (http://manual.cakephp.org/chapter/models), it
is suggested that you can search multiple models using a conditions
array such as:
array
("Author.name" => "Bob", "or" => array
(
"Post.title" =>
Hi.
I protect the admin section with beforeFilter in AppController,
SessionComponent and a simple AuthController:
function beforeFilter() {
if(!empty($this->params['admin']) && $this->params['admin'] ==
CAKE_ADMIN) {
$this->checkSession();
}
}
function checkSession()
{
// I
I just got the component working last night and I was getting the same
error until I changed a couple of the phpThumb config settings.
If you're using phpThumb in "object" mode you'll have to make these
changes in the phpthumb.class.php file. There is a file in the
distribution called phpThumb.c
Could you advice me please, how to protect /admin/ part of website?
Is it possible to protect with an .htaccess file?
I would like to protect with .htaccess following:
example.com/admin/news/add
example.com/admin/news/edit
example.com/admin/news/delete ...
Thank you a lot.
--~--~-~--~--
80 matches
Mail list logo