As far as the PHP manual states, you use #nnn; so your arrow becomes
#2191;
Enjoy,
John
On Apr 19, 8:21 am, sebb86 kahlc...@googlemail.com wrote:
Hello,
my charset is set to UTF-8.
But how do i output a UTF-8 sign inside PHP?
For example an arrow (U+2191) in a table cell:
[code]
th?php
Hi,
I have one table metrics and another table metric_levels. In the
Metric model I have $hasMany = 'MetricLevels' but anything inside the
MetricLevels model is totally ignored.
But, if I rename the model to 'Metric' and have $useTable =
'metric_levels' it works fine. I've tried all
John
Hello,
thank you. I had a similar idea. But how do i code this?
[my css code]
#input
{
float:left;
}
[/code]
[view code]
echo $form-input('db_field', array('label' = 'Label', 'maxLength' =
'20%', 'div' = array('id' = 'input')));
[/code]
Check out the new CakePHP Questions site
Hello again John,
this outputs a strange sign:
Seems like its the arrows hex code.
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
My preference is Coda - www.panic.com - overdue for a new version, but still
good.
Or there's espresso or Komodo.
Jeremy Burns
jeremybu...@me.com
On 19 Apr 2010, at 05:14, Bryan Lim wrote:
Hi all,
mac users, which ide are you using to develop cakephp? to compile and
to debug?
I
I now see that your code was the hex code, not the decimal code, so
use #x2191; for your arrow.
Enjoy,
John
On Apr 19, 9:18 am, sebb86 kahlc...@googlemail.com wrote:
Hello again John,
this outputs a strange sign:
Seems like its the arrows hex code.
Check out the new CakePHP Questions
No ide, just Textmate for me.
On Apr 19, 6:14 am, Bryan Lim ytbr...@gmail.com wrote:
Hi all,
mac users, which ide are you using to develop cakephp? to compile and
to debug?
I search the group here and realised this discussion is dated back to
2009. So, I want to know if there's any
HI there,
I want to use find() to exlude some data on a few conditions.
My app is built like this
customer-request-booking-bookingposition-lodging
with request fields: Id NameCustomerDate1/Date2 (date1,2
arrival,leave requested)
with booking fields: Id Name
I would use the forms standard DIV class instead of giving it an id.
For example:
[css code]
.input{
width:40em;
float:left;
}
.input label{
width:20%;
float:left;
}
.input input{
width:75%;
float:left;
}
[/css code]
If you have more than one input field, then you can use the
The HABTM association is really just a convenience wrapper for when
you want a basic many-to-many join, as soon as you want to do anything
else with the join model/table I would reccomend switching to the more
reliable and predictable:
ModelA hasMany JoinModel
ModelB hasMany JoinModel
JoinModel
The CakePHP book describes the NOT IN usage at:
http://book.cakephp.org/view/74/Complex-Find-Conditions
You are correct in what you want to do, first find all the lodgings,
which have bookings that overlaps the requested booking. Secondly find
all the lodgings which are not in the first list of
You model should be in singular form, which mean that is should be
named MetricLevel not MetricLevels, then CakePHP will ensure that
the correct table will be used.
Enjoy,
John
On Apr 19, 9:08 am, xiaohouzi79 xiaohouz...@gmail.com wrote:
Hi,
I have one table metrics and another table
Do you really have a model named Warehousetorontomapleavenue, with a
table of warehousetorontomapleavenues?
Surely this should be a Warehouse model with a record for
TorontoMapleAvenue?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related
In conclusion @Renan:
Composite keys are a very normal part of database design but not in
any way supported or very compatible with CakePHP.
Either you have to access that data via your own queris (no find and
save), not use the core Schema Shell to dump the schema ,and a bunch
of other things
Recursive may do the trick, but you should be getting your head around
containable here and if your associations are correct the code Walther
provided should have worked.
Problem with recursive is if ModelA or ModelB are associated to other
models it will go fetch them too as there is no way with
Alternatives would be
1. Apply javascript to the buttons so you could send to whatever url
you want
2. Replace the buttons with images (which is possibly a nice idea for
site wide Previous/Next buttons) and create the links as standard
links with images or text replacement.
(You'll find that the
Can we assume you have set $this-Auth-allow('referrals'), at an
application level (/app/app_controller.php)
If so add $this-Auth-deny('referrals') in your User and Staff
controllers.
HTH
Paul.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP
Have your added the comment_count field to the news table and have you
ran a query to update the counts as Cake only updates those counts
using afterSave afterDelete?
HTH
Paul.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You
If wanting to compare your hashed password with a salt inflected
hashed string use
if ($password == $this-Auth-password($password_confirm))
or
if ($password == Security::hash(Configure::read('Security.salt') .
$password_confirm)
HTH
Paul
On Apr 18, 5:24 pm, Zaky Katalan-Ezra
Hi all,
i am using the following find() function to get the data in a list. I
have put the conditions but still its taking all values.
$maincategories = $this-MainCategory-find('list', array(
'fields' =
array(
Thanks. It works when i write:
[code]
?php echo '#x2191;' ?
[/code]
But _NOT_ with paginate:
[code]
?php echo $paginator-sort(array('asc' ='id v', 'desc' ='id
#x2191'), 'id');
[/code]
What's wrong there?
Regards.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
Thanks for the response Cricket, I have dumped my codes below. Please
assist me. Regards.
My AppController::beforeFilter()
function beforeFilter(){
$this-Auth-fields = array('username' = 'username', 'password' =
'passkey');
$this-Auth-allow($this-allowedActions);
$this-Auth-authorize =
A HREF=?=$PHP_SELF;??intAction=2MODE=1IMG
SRC=../images/wizard/new_profile.png BORDER=0 onMouseDown=this.src =
'../images/wizard/new_profile_down.png'; onMouseUp=this.src =
'../images/wizard/new_profile.png';/A
How can i write this phpcode into cakephp
Check out the new CakePHP Questions site
Hello John,
thank you very much!
With this code, it looks like in the following screenshot:
[code]
.input
{
width:45em;
float:left;
}
.input label
{
width:25%;
float:left;
}
.input input
{
width:75%;
float:left;
}
.input input[type=checkbox]
{
float: none;
width:
I compiled cakephp 1.2 manual for print out from online book.
if you need, you can get it here;
http://www.ibonette.com/cakephp-1-2-manual-for-print-out/
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message
On Apr 19, 6:19 am, Prof. No Time libertylivingst...@gmail.com
wrote:
Thanks for the response Cricket, I have dumped my codes below. Please
assist me. Regards.
My AppController::beforeFilter()
function beforeFilter(){
$this-Auth-fields = array('username' = 'username', 'password' =
if you need you can get it here;
http://www.ibonette.com/cakephp-1-2-manual-for-print-out/
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.
In your view file, use the html helper for the link part!
Use the html helper for the image part with additional information to
support your onMouseDown/Up options.
When you have done that, please show us the code, so that we may
assist you further.
Enjoy,
John
On Apr 19, 1:26 pm,
?php
echo $html-link($html-image('new_profile.png' , array('border' = '0',
'onMouseDown' = 'new_profile_down.png',
'onMouseUp' = 'new_profile.png')), 'shownewprofile1', '?' =
array('intAction' = '2', 'MODE' = '1'), null);
?
On Mon, Apr 19, 2010 at 5:15 PM, John Andersen
Thanks John, I see what you mean. I've no idea what causes that
though, or how to fix it :s - but at least I'm closer to the problem!
Thanks again,
Sharon
On 17 Apr, 17:18, John Andersen j.andersen...@gmail.com wrote:
I have just been looking at your site with FF and Firebug. The
interesting
Hello,
I'm probably the 1000th guy who asks this question but I didn't manage to
find the answer on the group. I found some, but didn't apply to me.
I'm developing small apps using cake in order to get my head around it.
Every single time I start with a fresh copy by putting and renaming the
I am ashamed to say I was editing apache setting on the production server
while running the cake app on the dev one.
My bad, mod-rewrite was the issue.
On Mon, Apr 19, 2010 at 11:01 AM, Andrei Mita andrei.m...@gmail.com wrote:
Hello,
I'm probably the 1000th guy who asks this question but I
Whts the erroe its getting.tell me clearly then i will try to solve ur
query.
On Mon, Apr 19, 2010 at 1:31 PM, Andrei Mita andrei.m...@gmail.com wrote:
Hello,
I'm probably the 1000th guy who asks this question but I didn't manage to
find the answer on the group. I found some, but didn't
if anybody want to download the cookbook of cake php
plz click on below link then u can download easily.
http://www.ibonette.com/cakephp-1-2-manual-for-print-out/
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this
Hi there,
I would like to know if there is (and if then how to do) a way to
manipulate data from datetimefields.
I am doing a bookingsystem. Arrival is ment to be at 13:00, leave at
10 :00.
I use datetime fields in the views and database.
Now before saving I would like to always set the arrival
?php
echo $html-link($html-image('new_
profile.png' , array('border' = '0', 'onMouseDown' =
'new_profile_down.png',
'onMouseUp' = 'new_profile.png')), 'shownewprofile1', '?' =
array('intAction' = '2', 'MODE' = '1'), null);
?
i tryed this one but its getting error
On Mon, Apr 19, 2010 at
To me it looks like you are trying to have a link with an image, which
is to work like a button, that is, the image must change on mouse down
and up.
I would assume that the onMouseDown/Up events should either contain a
reference to a javascript function or javascript itself, not just the
?php echo $html-
image(
'new_profile_down.png',
array(
Hi Ambika,
All of 'fields', 'conditions', 'order' and 'group' arrays must be
inside the same array which is the second parameter of find()
function. Like the following:
$maincategories = $this-MainCategory-find('list', array(
Solved it, mod_rewrite was the issue. Thanks.
On Mon, Apr 19, 2010 at 3:05 PM, chandrasekhar reddy
chanduc...@gmail.comwrote:
Whts the erroe its getting.tell me clearly then i will try to solve ur
query.
On Mon, Apr 19, 2010 at 1:31 PM, Andrei Mita andrei.m...@gmail.comwrote:
Hello,
I'm
im using aptana studio...
really good... based on eclipse..
--
Renato de Freitas Freire
ren...@morfer.org
On Mon, Apr 19, 2010 at 3:42 AM, Martin Westin
martin.westin...@gmail.comwrote:
No ide, just Textmate for me.
On Apr 19, 6:14 am, Bryan Lim ytbr...@gmail.com wrote:
Hi all,
mac
question as above.
I also want to ask if there's an official jquery helper for cakephp?
The one at the bakery is kinda outdated.
thanks!
Bryan
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you
Check out JsHelper in 1.3
http://book.cakephp.org/view/1594/Using-a-specific-Javascript-engine
On Apr 19, 10:17 am, Bryan Lim ytbr...@gmail.com wrote:
question as above.
I also want to ask if there's an official jquery helper for cakephp?
The one at the bakery is kinda outdated.
thanks!
Coda
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 cake-php@googlegroups.com
To unsubscribe from this
No ide, just Textmate for me.
+1
though reckon it's also due for an update...
j
--
jon bennett - www.jben.net - blog.jben.net
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
Eclipse PDT
Regards,
Pablo Viojo
pvi...@gmail.com | http://pviojo.net
http://twitter.com/tiopaul (@tiopaul) | LinkedIn profile:
http://cl.linkedin.com/in/pviojo
¿Que necesitas?
http://www.needish.com
On Mon, Apr 19, 2010 at 11:29 AM, Jon Bennett jmbenn...@gmail.com wrote:
No ide, just
Hi!
Thank you Bert Van den Brande for answer.
I have added a js script for modify browser address string:
echo location.hash=\$this-here\;;
What do you mean - I don't need to modify any Cake's urls?
if I didn't modify it - I will get a very funny urls - like:
How does the HTML code look like, that your html-image code
generates?
What do you expect the generated HTML code to look like? And how do
you expect it to behave?
Enjoy,
John
On Apr 19, 3:41 pm, chandrasekhar reddy chanduc...@gmail.com wrote:
?php echo
I have my cake folder at the same hierarchy as the app folder. But the
entire project is located in a subfolder, which has the same name:
cake because I have also other projects running on this server. My
hierarchy looks like this:
...htdocs/cake
...htdocs/cake/app
...htdocs/cake/cake
Does cake
Do I understand you correctly, that you don't want the other fields
(name, index, status, etc.) to have the label aligned horizontally
with the input field?
Assuming that you do want them horizontally aligned, I usually never
use 100% in total for the label and the input field, as there usually
I can't tell you, as I have cake and my app at the root level and uses
apache virtual servers to ensure that the correct app is connected.
My hierarchy looks like:
...htdocs/cake
...htdocs/28871 = app 1
...htdocs/28872 = app 2
etc.
and my virtual servers points to /28871/webroot and
Hi,
Well.. Lets make a better example. There are two examples in this email
and sorry for the length.
*** Example 1 ***
Lets say there is a customizable form element giving possibility to
select on case by case basis define how many edit field are present. In
some other place on web page there
I use it, without the helper. If using jQuery + Cake is wrong, I don't want
to be right.
Good luck,
Matt
On Mon, Apr 19, 2010 at 09:17, Bryan Lim ytbr...@gmail.com wrote:
question as above.
I also want to ask if there's an official jquery helper for cakephp?
The one at the bakery is kinda
Hi,
My application is running fine on the development environment, but not
on production.
Its giving me this error
Fatal error: Class 'Controller' not found in D:\test\app
\app_controller.php on line 5
I have cacke enabled on production.
I deleted the cache and still facing this problem
I am
Hi,
That can be the Cake's way but that is not a good way to make it.
Using msgid's (or keys if you prefer) to lookup the localization
database is much better way as then you have full power to differentiate
when needed the case when some specific case is only different in one of
the languages.
Do I just have to re-write my application if I'm using Postgres? I
thought I could switch databases
and cake would handle it for me?
The array format for associated tables is different in Postgres than
it is in Mysql
Check out the new CakePHP Questions site http://cakeqs.org and help others
On Apr 19, 7:52 am, WhyNotSmile sharongilmor...@googlemail.com
wrote:
Thanks John, I see what you mean. I've no idea what causes that
though, or how to fix it :s - but at least I'm closer to the problem!
It looks to me like your webroot is inaccessible. Try uploading a
simple page to webroot
On Apr 19, 8:23 am, mivogt-LU c...@mivogt.net wrote:
Hi there,
I would like to know if there is (and if then how to do) a way to
manipulate data from datetimefields.
I am doing a bookingsystem. Arrival is ment to be at 13:00, leave at
10 :00.
I use datetime fields in the views and
Yes, I did manually update all the fields and later tried to insert/
delete comments, but with no luck. Probably I have ruined the
automagic somewhere else in my add/delete code, but I doubt it.
I fixed the issue by adding two snippets to increment/decrement the
count on insert and delete. The
Do I understand you correctly, that you don't want the other fields
(name, index, status, etc.) to have the label aligned horizontally
with the input field?
I want, that fields like Name or Duplex look equal to fields like
VLAN or Uplink.
That means, the i want the label on the left and next
Disclaimer: I am not a Mac user, but..
I heartily recommend NetBeans. :)
Eclipse is nice, but NetBeans is faster, leaner and more productive,
IMO.
It's a very underrated IDE, and - like Eclipse - it has a PHP specific
edition.
Give it a try.
On Apr 19, 6:14 am, Bryan Lim ytbr...@gmail.com wrote:
On Apr 19, 1:23 pm, mpeshev nofear...@gmail.com wrote:
Yes, I did manually update all the fields and later tried to insert/
delete comments, but with no luck. Probably I have ruined the
automagic somewhere else in my add/delete code, but I doubt it.
I fixed the issue by adding two snippets to
With the given CSS it should do so!
Do you have FF and Firebug available? If you have, use them to verify
that the correct CSS applies to the label and input field.
Enjoy,
John
On Apr 19, 8:40 pm, sebb86 kahlc...@googlemail.com wrote:
Do I understand you correctly, that you don't want the
cricket-5 wrote:
Ensure you have the following in php.ini:
error_reporting = E_ALL
display_errors = On
Also, are you certain that the ww vhost doesn't have its own log?
Also, try putting the following at top of webroot/index.php
die('well, it works this far');
Thank you
You use whatever you are comfortable with. I use jQuery without the
helpers, because the helpers just seem pointless.
On Apr 19, 7:39 am, Matthew Powell php...@gmail.com wrote:
I use it, without the helper. If using jQuery + Cake is wrong, I don't want
to be right.
Good luck,
Matt
On
Dont make everything AJAX. Its really pointless if you are loading the
whole content anyways.
It also breaks SEO and then you run into problems like this.
On Apr 19, 9:05 am, Dmitry Shevchenko dmitr...@gmail.com wrote:
Hi!
Thank you Bert Van den Brande for answer.
I have added a js script
Thanks.
I can't view a page in webroot, but I did put phpinfo in a file which
is at www.softwaresolutionsni.co.uk/info.php. I know this is no
longer really a PHP question, but I'd really appreciate if anyone
could either have a look and see whether it looks ok, or suggest a
group where I could
As a Mac user and a netbeans one, I agree. Its a great app. I can't
comment or compare against the others as I haven't really tried them
out, except Eclipse which I just didn't get on with.
Being a PHP and Python developer, Netbeans really works well for me
with good support for both language.
Netbeans user here too :]
Loving it.
On Apr 19, 1:24 pm, kadanis evad.ba...@gmail.com wrote:
As a Mac user and a netbeans one, I agree. Its a great app. I can't
comment or compare against the others as I haven't really tried them
out, except Eclipse which I just didn't get on with.
Being a
Howdy all..
Still not comfortable with cakephp yet. What I'm looking to do here
is just print the AROS tree structure so I can verify everything is
where it should be (and so I can learn how to work with it later).
How would I go about doing this?
Thanks,
James
Check out the new CakePHP
I'm trying to limit an association between 2 models using the conditions key.
It works great in the 'parent' Model, but I can't work out how to get it
working properly in the 'child' Model.
Here's the relevant info from the models:
Product( 'id', 'name' );
ProductLoan( 'id', 'product_number',
Hi John, thanks for the reply.
It's still not working:
In the /app/models folder I have two files:
Metric.php
?php
class Metric extends AppModel {
var $name = 'Metric';
var $recursive = 2;
var $hasMany = 'MetricLevel';
}
?
MetricLevel.php
?php
class MetricLevel extends
I've now managed to get it to work doing the following:
Here is how it is:
// metric.php
var $hasMany = 'MetricLevel'
// metric_level.php
?php
class MetricLevel extends AppModel {
var $name = 'MetricLevel';
var $useTable = 'metric_levels';
var $order = 'upper_value DESC';
Hey guys,
I'm new to cakePHP and I love it. But I have ran in to a little snag
with the auto-baked views.
In them, I have a drop-down list which shows what group or client a
certain user is to be associated with (when creating new user
account). The issue... is that in on view the drop-down list
i use netbeans on mac and linux
i think its great!
On 04/19/2010 11:42 AM, jacmoe wrote:
Disclaimer: I am not a Mac user, but..
I heartily recommend NetBeans. :)
Eclipse is nice, but NetBeans is faster, leaner and more productive,
IMO.
It's a very underrated IDE, and - like Eclipse - it has
Hi everyone,
I've searched long and hard to find an answer to this but haven't had
luck. Tried IRC but didn't ever get a response from anyone.
Using the 1.3 branch, Is it possible to use a virtual field in a find
condition? Using the classic example,
var $virtualFields = array(
'name' =
Even with recursion, however, wouldn't one be able to use $this-Model-
unbindModel() to take away any unwanted, extra associations?
http://book.cakephp.org/view/86/Creating-and-Destroying-Associations-on-the-Fly
It's all very likely that I didn't have correct associations
earlier... so that
I agree with that.
Enter the phrase 'when to use ajax' in your search engine of choice
and read.
In my humble opinion, you need to re-think your application.
The URLs are probably the most important part of your site, almost as
important as your data.
In my own site I have a tabbed
Thanks for the reply guys... I will give netbean a try then :)
On Apr 20, 3:27 am, j...@lithophile.com j...@lithophile.com wrote:
i use netbeans on mac and linux
i think its great!
On 04/19/2010 11:42 AM, jacmoe wrote:
Disclaimer: I am not a Mac user, but..
I heartily recommend
Hello,
I am new to programming and my first assignment is on CAKE-PHP. I have
created a table and ran bake. But it gave me this error Fatal Error Class
I18n not found. Can u plz help me as to how can I resolve the issue.
Thanks, Appreciate it.
Check out the new CakePHP Questions site
Hello
Thanks for the reply.
I think i didnt explain properly. The sample you show is for view page
of each event.
But my requirement is for the event display grid where you wont have a
event id
we get all events and display in a grid. In that grid we add one more
column no. of registrations,
my problem has solved. I combine with post httpsocket
http://book.cakephp.org/view/803/post
in web service project, i work according
http://book.cakephp.org/view/477/The-Simple-Setup
ex:
1. Make Recipes Controller
?php
// file : app/controllers/recipes_controller.php
class RecipesController
do i put it at vendors or app/vendors?
it is supposed to be used in one of the controller.
On Apr 19, 4:02 am, thatsgreat2345 thatsgreat2...@gmail.com wrote:
Put it in vendors folder.
Here is an example showing you how to import a vendor if it doesn't
follow cake conventions naming
I am using netbean on mac.
I place my external library on vendors ( not app/vendors)
then I created an object from the library. without
App::import('vendor', 'aUniqueIdentifier', array('file' ='path/
relative/to/vendor/file.php'));
as mentioned http://book.cakephp.org/view/579/Loading-Files
Same here. I'm using Aptana Studio as well.
I love that I can have it SFTP into my server and to dev locally (you
can also choose to mount a WebDav)
On Apr 19, 9:56 am, Renato de Freitas Freire renat...@gmail.com
wrote:
im using aptana studio...
really good... based on eclipse..
--
Renato
Hi It worked Thanks :)
On Mon, Apr 19, 2010 at 6:15 PM, Lucca Mordente luccamorde...@gmail.comwrote:
Hi Ambika,
All of 'fields', 'conditions', 'order' and 'group' arrays must be
inside the same array which is the second parameter of find()
function. Like the following:
$maincategories
Hi all,
according to the convention
why is only controller named by _controller ? while model and view
aren't following..
thanks
bryan
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
Hi everyone,
I've googled a lot but did not find any solution to this problem:
We are offering some CSV data export in our web application.
This will open a CSV file in a new browser window via javascript.
In that new browser window you usually get asked if you want to save
or open the file...
i got a slight problem here folks...the login page logins with fbconnect but
it goes to the desired page in the pop-up window after logging in with
facebook username and password...i want it to go to that page in the main
window.and login link should change to logoutwhat am i missing?
--
coda. dosn't prompt you for cake functions etc but the ftp publishing,
terminal integration, svn etc is ace. its just all very easy.
On Apr 20, 1:38 pm, morficus morfi...@gmail.com wrote:
Same here. I'm using Aptana Studio as well.
I love that I can have it SFTP into my server and to dev
Thank you for you advices, but I can't stop using ajax on my site, I
have a chat window on my pages, so if page will reloaded - I have to
relogin user to chat - this will overload chat server.
I knew about SEO problems, but I think we could fix it by sitemap and
robots.txt
So I needed a solution,
91 matches
Mail list logo