Hi Amit (amit-amit deh :),
I try using this:
?php echo $paginator-prev($html-image('btn_prev_na.gif', array
('border'='0')), null, null, array('class' = 'disabled')); ?
and the image for previous button not appear, just text img =src bla
bla bla appear :(
Regards,
Sony AK
http://m.mobitrek.com
I want to show the subcategory in every product page,so I create a
element to do this,but I found the only method to get data is
requestAction, for example I use $this-requestAction('category/index/
mp3') to get the mp3 category, my question is how to change the param
'mp3' to 'cd',Passing from
I want to show the subcategory in every product page,so I create a
element to do this,but I found the only method to get data is
requestAction, for example I use $this-requestAction('category/
index/
mp3') to get the mp3 category, my question is how to change the param
'mp3' to 'cd',Passing
Hello. I have a couple questions regarding static/dynamic content
mixing. I have a site to build that is largely informational, but has
news, events etc. The news and events will be on pages that will have
80% static content. Can i use something like the PagesController to
create pages like
@filesource
* @copyright Copyright 2005-2008, Cake Software Foundation, Inc.
* @link
http://www.cakefoundation.org/projects/info/cakephp CakePHP
(tm) Project
* @package cake
* @subpackage cake.app.config
* @since
thanks, but i need more options yahoo would be my choice...
Aneesh S
--~--~-~--~~~---~--~~
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
I guess in the controller you can try to validate the formdata
first, instead of just save. $this-Model-try(); is a method that
does save without the eventual saving, but it does return a Boolean
whether the formdata is valid or not.
Depending on that result you can either render('nextPage',
And code submitting the form in my first post now looks like:
echo $ajax-form('Snack', 'POST', array('update'=array
('formDiv','centralText',
'url'='/updateSnack', 'before'='togglePreloader();',
'complete'='togglePreloader();'));
On 14 nov, 09:46, Bart [EMAIL PROTECTED] wrote:
I guess in the
If it's the same header on every view, just call it in the layout.
If, on the other hand, it's the same header in MOST views, use the
chunks helper as above:
some_view.ctp:
?php $chunks-begin('header'); ?
This will end up in the header
?php $chunks-end(); ?
your_layout.ctp:
?php
if
I have had a lot of luck with fckeditor in my cake projects. There is
also a tutorial for it in the bakery.
On Nov 14, 5:30 pm, Aneesh S [EMAIL PROTECTED] wrote:
thanks, but i need more options yahoo would be my choice...
Aneesh S
--~--~-~--~~~---~--~~
You
mmm yes thanks for idea, i think better way is to force enter email.
its clearer solution, then type some pass.
I want to add that here is very friendly community in cakephp
groups :)
Best reagards
On Nov 14, 1:12 am, Jon Bennett [EMAIL PROTECTED] wrote:
No it is not e-mail activation, it
Hi! Address in browser /books/add/category_id:51. If after press on
save button except an error - CakePHP redirect me on url /books/add
and category_id:51 is missed. Can i fix it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
ok... let me try that..
Aneesh S
--~--~-~--~~~---~--~~
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
You don't need it in the url at that point:
books_controller:
function add() {
if (!empty($this-data)) {
// Saving, whatever here
}
else {
$this-Book-create();
// List of parameters that can be specified in the url.
// Can also handle aliases (category = category_id for
yes... thanks...
On Nov 14, 1:17 am, Daniel Hofstetter [EMAIL PROTECTED] wrote:
Hi,
I have seen two Vendors folder in the cake installation:
One is in the -root- folder and the other is in the -app- folder.
Is there any difference in using these two folders?
The difference is that the
obvious...
/slapping myself
grigri ha scritto:
If it's the same header on every view, just call it in the layout.
If, on the other hand, it's the same header in MOST views, use the
chunks helper as above:
some_view.ctp:
?php $chunks-begin('header'); ?
This will end up in the header
hi friends,
I m using Remotefunction on radio group, value of that radio
button is different. problem is that when i click on particular radio
that radio value is pass as argument in may controller action, how can
i pass dynamical argument when click on radio.
my code like that:
?php
thanks for the help I've got the yahoo editor working and ok...
But now i have a problem with the add link and add image button on the
toolbar...
I'm getting a X^ and the functions are inlined in the textarea and
flowing outside.
How can i fix this...
Thanks in advance..
On 11/14/08,
Good choice... and if you want a bit more go for WYMeditor
http://www.wymeditor.org/ which is also jQuery based.
Personally I really don't enjoy working with TinyMCE (although haven't
tried the latest release) or FCKeditor
On Nov 14, 7:54 am, Ketan Shah [EMAIL PROTECTED] wrote:
Bom dia,
Sou designer e não entendo muito de programação PHP e Cake. Porém sei
o básico dessas linguagens.
Seguinte, estou tomando uma surra para publicar um site, sempre quando
mando para web da o seguinte erro:
Fatal error: Maximum execution time of 30 seconds exceeded
Localhost funciona sem
I’m trying to keep all scripts at the bottom of the page, so the page
will load quicker.
So, at the bottom of my layout I have an $ajax-observeField() which
observes a select dropdown at the top of the page.
The first time the select is changed, the observeField()sends an ajax
request to the
Hey Matt, thanks for the reply. I had tried deleting the tables in the
test db before running the test again and still had the same problem.
Hm...Any other thoughts?
On Nov 14, 1:12 am, MattC [EMAIL PROTECTED] wrote:
I get this all the time. Make sure there are no tables in your test
DB
Try this
http://debuggable.com/posts/testing-models-in-cakephp---now-let's-get-rid-of-the-unnecessary-modeltest-classes-!:4890ed55-be28-4d4a-ba4c-7fd64834cda3
I posted some code Oct 14 (scroll down in the comments) that might help
you. Testing does work (and works very well) but is
Tópicos em português devem ser postados no fórum pt-br.
ok?
--~--~-~--~~~---~--~~
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
I originally posted the Acl tutorial on my site http://mark-story.com
and the source is at the end of part 2.
-Mark
On Nov 13, 10:56 am, gfmailweb [EMAIL PROTECTED] wrote:
Is there somewhere I can download the source code to a completed 1.2
Blog tutorial including the ACL portions? That
ok cool. Thanks for the tips guys. Much appreciated!
On Nov 14, 9:40 am, Howard Glynn [EMAIL PROTECTED] wrote:
Try this
http://debuggable.com/posts/testing-models-in-cakephp---now-let's-get...
I posted some code Oct 14 (scroll down in the comments) that might help
you. Testing does work
Yes cake can do that. Essentially you will have your news view, and it
will have that layout like built in. Then in the controller after
doing some sort of check to see what variable in the url has been
set , like a number that corresponds to a news article, then the
controller will be like hey
Hi all,
I'm halfway through the ACL implementation (well, almost...), and I
was wondering: is it better to hide the links which are denied by ACL
(we're talking about the already logged-in user), or show them and
give the user the Auth message not enough privileges?
Obviously, hiding all the
Set the sub-category in the controller:
$this-set('sub_category', ...
then, in your element:
$this-requestAction(category/index/${sub_category});
However, I'm not certain that I understand what you want to do, so there may
be a better way to achieve your goal. Specifically, I don't understand
Btw, next time you upgrade Ubuntu, you should make sure that your
Apache conf files don't get overwritten by the default ones from the
package.
Usually, the upgrade manager prompts you wether you want to keep your
files or get the new ones, and you can see the diff between the two;
At least,
If it's *only* a question of obscurity in order to clean up the interface,
you could hide them using CSS and avoid a bunch of logic in the view to
determine what should be output. Just add a class to the body (or nav div,
etc) based on the user group. Then, lay out some style rules to hide certain
I just wanted to thank you again for linking me to that shell.
I finally tried it as I was having the same problem on a new
application and it worked wonderfully.
David Persson is brilliant.
On Nov 12, 7:14 am, Dardo Sordi Bogado [EMAIL PROTECTED] wrote:
From much searching I discovered that
I think i know what you mean jet. There have actually been quite a few
articles written on the dangers of using requestAction. If I am going
to be using something like you are using, what I will usually do is
set up a function in app_controller that imports the Category model,
does a find('all')
Hello all,
i have a cakePHP 1.1 app that, at a point, creates a record on a model
(B) that is associated with another model (A) through A has many B
then does a find on A. I've noticed that the new record in B does not
show up on the find's result array from A, and checking debug revealed
that
Hello everyone,
I'd like to share with you what I have discovered.
Here's a procedure that triggers a notice level error:
1) When accessing url
http://teachtheworldguitar.pp/orderItems/delete/30
OrderItemsController-isAuthorized() returns false so I'm logged off
and redirected to a login
Hello,
I am currently installing CakePHP on the root of my web hosting.
CakePHP run well. On this domain I am also installing a phpBB forum in
the domain.com/forum. But when I try to access the forum the request
seems to be intercepted by CakePHP. How should I configure it so I can
access the
Checking for empty chunks in the layout is not very handy because
there's too much code in layout.
Too much code in layout = harder migration/implementation on new
layouts
I'm trying to do those checks before the layout rendering
so the only code in layouts will be
?php $something_for_layout ?
Uhm... if i check for empty chunks before the layout render (for
example in App_Controller)?
the only code in layout will be something like
?php $something_for_layout ?
it will be easier to change layout in future.
am i right?
On 14 Nov, 09:51, grigri [EMAIL PROTECTED] wrote:
If it's the
I'm new to cakephp and frameworks in general. Right now I'm working
with two models Systems and Ips. System hasMany Ip and Ip belongsTo
System. I want to create a paginate condition for Systems that uses
both models. E.g.:
array(System.user like = %.$search.%, Ip.address like = %.
$search.%)
Thanks For The Info!
I Would Try Debuging! But Let Me Read Into This More.
On 11/14/2008, Petr 'PePa' Pavel [EMAIL PROTECTED] wrote:
Hello everyone,
I'd like to share with you what I have discovered.
Here's a procedure that triggers a notice level error:
1) When accessing url
You said that you were installing it on the root. Is that root one or
two? Is this free web hosting? Did you get an error msg? I dont think
that this is a configure problem I think that you need either to
be varified by the web host and cake. And Also... you may need Auth.
On 11/14/2008, I
what is the value of your authRedirect?
On Nov 14, 12:35 pm, Petr 'PePa' Pavel [EMAIL PROTECTED] wrote:
Hello everyone,
I'd like to share with you what I have discovered.
Here's a procedure that triggers a notice level error:
1) When accessing url
place your forum in the webroot dir of your cakephp install.
On Nov 14, 10:46 am, I Wayan Saryada [EMAIL PROTECTED] wrote:
Hello,
I am currently installing CakePHP on the root of my web hosting.
CakePHP run well. On this domain I am also installing a phpBB forum in
the domain.com/forum. But
dir as in directory root?
On 11/14/2008, teknoid [EMAIL PROTECTED] wrote:
place your forum in the webroot dir of your cakephp install.
On Nov 14, 10:46 am, I Wayan Saryada [EMAIL PROTECTED] wrote:
Hello,
I am currently installing CakePHP on the root of my web hosting.
CakePHP run well.
dir as in directory... wherever the webroot happens to be
On Nov 14, 6:43 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
dir as in directory root?
On 11/14/2008, teknoid [EMAIL PROTECTED] wrote:
place your forum in the webroot dir of your cakephp install.
On Nov 14, 10:46 am, I Wayan
Ok Now In That Dir There Should Be Root 1 or 2 Right?
On 11/14/2008, teknoid [EMAIL PROTECTED] wrote:
dir as in directory... wherever the webroot happens to be
On Nov 14, 6:43 pm, Xavier Mathews [EMAIL PROTECTED] wrote:
dir as in directory root?
On 11/14/2008, teknoid [EMAIL PROTECTED]
What is essentially happening is that you are deleting the object from
the DOM and then adding a completely new one (different internal js
interpretter IDs). All the registered events are severed on the old
object.
You can still keep your scripts together, but you may need to wrap it
with a
hi,
I want to call remotefunction when my page is load. send me proper
guide lines how i call remotefunction when my page is load.
can i use JavaScript if yes then how?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
hi,
I want to use view variables in controller can i use?
--~--~-~--~~~---~--~~
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
49 matches
Mail list logo