Re: How to output UTF-8 sign?

2010-05-02 Thread sebb86
John Thanks a lot for all your help and that you spending time on this. If anyone else need the source code: (additions: column number in every column header, renamed column headers) [code] ?php $sortable = array('id' = 'sort_none', 'hardware_unit_id' = 'sort_none', 'description' = 'sort_none');

Re: How to output UTF-8 sign?

2010-04-30 Thread sebb86
Well, I don't know at which position in the source code, i have to reset it. I would reset with this source code: $sortCssClass = 'sort_none'; I think, i need to know, which column header is clicked and then i have to reset all others. Could you give me a last hint please? Thanks! Check out the

Re: How to output UTF-8 sign?

2010-04-26 Thread sebb86
Thank you for making an example! But in my case, i have more than one column to make sortable. In your example, when i click on one table header to sort, all table headers show the same arrow, what is wrong :/ Check out the new CakePHP Questions site http://cakeqs.org and help others with their

Re: How to output UTF-8 sign?

2010-04-26 Thread sebb86
Hmm, should it be easy to reset the sort direction? I don't know at which position in the source code, i have to reset it. 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

Re: How to output UTF-8 sign?

2010-04-22 Thread sebb86
Hello again and thanks. I got an arrow in my column header. But its every time (asc or desc) the same arrow, so i think, the paginate source code is still wrong. My problem is still, that i dont know how to combine two classes in one paginate function. [code dont works] ?php echo

Re: View (form-input) - Disable word wrap?

2010-04-21 Thread sebb86
John Thanks a lot for all your help. In your example, is the cake.generic.css file the original? 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

Re: How to output UTF-8 sign?

2010-04-21 Thread sebb86
Hello and sry that i have to ask again. But i dont know, what the correct syntax for the pagination is. At the moment i have: [code] ?php echo $paginator-sort(array('asc' ='id v', 'desc' ='id ^'), 'id'); ? [/code] How do i get class definitions inside? Check out the new CakePHP Questions site

Re: View (form-input) - Disable word wrap?

2010-04-21 Thread sebb86
Okay, thats the reason. I have to much standard definitions in the cake.generic.css. It would take me to much time to change all this. But inspite of this, i used some of your definitions! :-) I'm new to CSS (and also to CakePHP), so some source code was very usefull for me. Thanks a lot for all

Re: How to output UTF-8 sign?

2010-04-21 Thread sebb86
Hello again and thanks. I got an arrow in my column header. But its every time (asc or desc) the same arrow, so i think, the paginate source code is still wrong. My problem is still, that i dont know how to combine two classes in one paginate function. [code dont works] ?php echo

Re: How to output UTF-8 sign?

2010-04-21 Thread sebb86
Hello again and thanks. I got an arrow in my column header. But its every time (asc or desc) the same arrow, so i think, the paginate source code is still wrong. My problem is still, that i dont know how to combine two classes in one paginate function. [code dont works] ?php echo

Re: View (form-input) - Disable word wrap?

2010-04-20 Thread sebb86
Okay, its done. Firefox solution: [code] .input { width:45em; float:none; } .input label { width:25%; float:left; } .input input { width:50%; } [/code] Internet Explorer 8 solution: [code] .input { width:45em; float:none; } .input label { width:25%; float:none; } .input

Re: How to output UTF-8 sign?

2010-04-20 Thread sebb86
Addition: [code] uarr; [/code] also works. But also _not_ inside the paginate source code. Any ideas? Thanks if someone can help! 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

Re: View (form-input) - Disable word wrap?

2010-04-19 Thread sebb86
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

Re: How to output UTF-8 sign?

2010-04-19 Thread sebb86
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

Re: How to output UTF-8 sign?

2010-04-19 Thread sebb86
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

Re: View (form-input) - Disable word wrap?

2010-04-19 Thread sebb86
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:

Re: View (form-input) - Disable word wrap?

2010-04-19 Thread sebb86
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

View (form-input) - Disable word wrap?

2010-04-18 Thread sebb86
Hello, when i create my automagic form elements, they look like: label // --- new line empty text field Can i disable this word wrap? Thanks! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because

How to output UTF-8 sign?

2010-04-18 Thread sebb86
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 echo $paginator-sort(array('asc' ='id U+2193', 'desc' ='id U+2191'), 'id'); ?/th [/code] regards and thanks! Check out the new CakePHP Questions site

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-16 Thread sebb86
Another addition: When i only insert the image, without the $html-link, it works in internet explorer 8. [code works but without link] ?php echo $html-image(edit.png, array(alt = Editieren)); ? [\code] Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-16 Thread sebb86
Addition: I'm really sorry but i forgot my self defined css... :( So this works for Firefox: [code] ?php echo $html-link('Edit', array(controller = 'dns_names', action = edit, $dns_name['Dnsname']['id']), array('class' = 'edit', title = Editieren), null, false); ? [/code] And when i remove:

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-16 Thread sebb86
cricket Also thanks to you. It dont works in both browsers. Dont know why. Anyway... i decided that i dont use CSS for this. I got it working so far but i still have one problem. [this code works (without the CSS class, but its okay] ?php echo $html-image(edit.png, array(alt = Editieren, 'url' =

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-16 Thread sebb86
The solution was an empty array [dynamic code] ?php echo $html-link($html-image(delete.png, array(alt = Löschen)), array(controller = $contr, action = delete, $row[$class]['id']), array(), sprintf(__($deleteQuestion, true), $row[$class]['id']), null, false); ? [/code] Really thanks a lot to

Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread sebb86
Hello, i want to show an element in a table cell. [element code] ?php echo $html-link($html-image(edit.png, array(alt = Editieren)), array(controller = $contr, action = edit, $row[$class]['id']), array('class' = 'edit', title = Editieren), false); ? [/code] [code in view] td?php echo

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread sebb86
Hello, thanks for the suggestion. I just compared it. The source code is the same. 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

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread sebb86
sure :-) [HTML Code for the table cell:] tda href=/dns_names/edit/1 class=edit title=Editierenlt;img src=quot;/img/edit.pngquot; alt=quot;Editierenquot; /gt;/a / td [/code] Addition: When i copy the element outside the table, it works fine. Check out the new CakePHP Questions site

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread sebb86
cricket Do you mean the code should be: [code] ?php echo $html-link($html-image(edit.png, array(alt = Editieren)), array(controller = $contr, action = edit, $row[$class]['id']), array('class' = 'edit', title = Editieren), null, false); ? [/code] Then it creates the following [html source code:]

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread sebb86
Yes, i see it. When i copy the element outside the table, it works fine. 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

Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread sebb86
Hello again and really thank you cricket and John! OK. Copy the HTML source and paste it directly into the view and see if the image link are accessible inside the table. Same as before. When i substitute the variables it works fine in Firefox but _not_ in Internet Explorer :/ Check out the

Re: How to pass a variable from a view to the associated controller?

2010-04-10 Thread sebb86
Ok. I made it working. [controller code] function view($temp, $value) { $this-set('persons', $this-paginate('Person', array('Person.'. $temp = $value))); } [/code] [view code for one table cell (in this example the table cell for column forename)] ?php $value= $row['Person']['forename'];

How to pass a variable from a view to the associated controller?

2010-04-09 Thread sebb86
Hello, how can i pass a variable from a view to the associated controller? I need this because i want to reload the view with other values for paginate. I'd like to do this inside html-link. The two variables are named value and temp. temp should contain the database field in the suitable form,

Re: UTF-8 website problem (database encoding works)

2010-04-07 Thread sebb86
Martin Thank you for helping me! When i do what you suggest, i see the special chars. (echo 'áéíóúñ£ €';) But, in your message, i dont see this characters. i only see it in the e-mail, which i get when someone put a message here. Greetings. Check out the new CakePHP Questions site

Re: UTF-8 website problem (database encoding works)

2010-04-07 Thread sebb86
Martin, cricket Hello, Assume you are using mysql -- yes 1) Make sure you have add this to database.php default array config:'encoding' = 'utf8' -- done 2) Make sure the table collation is utf (could be uft8_general_ci) -- done 3) Make sure the table is empty --

Re: UTF-8 website problem (database encoding works)

2010-04-07 Thread sebb86
Martin, cricket Thanks for your help. The problem is solved. I made failures with the editor. I opened every file and choose UTF-8 without BOM and thought, that at this point, the file is UTF-8 converted. This is wrong. I have to open every file and use Convert to UTF-8 without BOM. Sorry for

UTF-8 website problem (database encoding works)

2010-04-06 Thread sebb86
Hello, instead of umlauts, i see only signs on my website. I think the problem occurs because i developed with Windows 7 with a tool which is not UTF-8 compatible and later, i moved the needed files to Ubuntu. To solve this, i downloaded the Notepad++ Editor. Then i opened all files and checked

Re: check if foreign key is used in other tables before delete data row

2010-04-04 Thread sebb86
John Thank you very much. It works when i change the first code line to: [code] $rowCount = $this-Location-Room-find( [/code] Also thanks for the possibility of using Counter-Cache. Is counter-cache also working (counting) when i insert my data the first time via MySQL (with INSERT)? Greetings

Re: check if foreign key is used in other tables before delete data row

2010-04-04 Thread sebb86
Great! Thanks again! :-) 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

Re: Possible to blank (hide) columns and show those again in a complete rendered view?

2010-03-31 Thread sebb86
Hello, With this code, my problem is solved. [CODE] script type=text/javascript function toggleColumn(table, column) { for (var i = 0; i table.rows.length; i++){ if (table.rows[i].cells.length column){ var cell = table.rows[i].cells[column];

Re: retrieve related model data

2010-03-28 Thread sebb86
Thanks cricket. Another addition, i someone else has a similar problem. It also works without CONTAINABLE. Just keep the associations in the model and the view code to retrieve and use the following in the controller: [code] var $paginate = array( 'limit' = 50,

Re: retrieve related model data

2010-03-26 Thread sebb86
Jeremy Burns Hello again :) Code in the model of my port-table: (the $hasOne association from my origionally question was updated to the association below:) [code] public $hasMany = array( 'Port' = array( 'className' = 'Port', 'foreignKey' = 'uplink_id' ) ); [/code] I

Re: retrieve related model data

2010-03-26 Thread sebb86
sure! :-) [code of model port] public $belongsTo = array( 'HardwareUnit' = array( 'className' = 'HardwareUnit' ), 'Vlan' = array( 'className' = 'Vlan' ), 'PortEmploymentGroup' = array( 'className' = 'PortEmploymentGroup'

Re: retrieve related model data

2010-03-26 Thread sebb86
Jeremy It works with a little modification :) great!!! The modification is to change ChildPort to ParentPort in the following code: [code] var $paginate = array( 'fields' = array('*'), 'recursive' = 2, 'limit' = 50, 'order' =

Re: retrieve related model data

2010-03-25 Thread sebb86
I use this in my controller: [controller code] var $paginate = array( 'fields' = array('*'), 'recursive' = 2, 'limit' = 50, 'order' = array('Port.hardware_unit_id' = 'asc'), 'contain' = array(

Re: retrieve related model data

2010-03-24 Thread sebb86
cricket Again... thanks a lot for your help. It seems to work. When i debug, i get this: == Array ( [Port] = Array ( [id] = 1 [hardware_unit_id] = 1 [vlan_id] = 1 [port_employment_group_id] = 3 [uplink_id] =

Re: retrieve related model data

2010-03-24 Thread sebb86
Jeremy Thanks! :) That works. But now, i thought i was ready i noticed another problem. The debug output above is for a port, which has no value in the field uplink_id. But the port with id - 3 has value 1 in uplink_id. So port with id 3 points to port with id 1. Now, the problem is, that i

check if foreign key is used in other tables before delete data row

2010-03-24 Thread sebb86
On 2 Mrz. 2009, 19:25, mscdex msc...@gmail.com wrote: On Mar 2, 7:20 am, krishan milepe...@gmail.com wrote: I usually do this sort of checking in the model validation or in the delete controller action before the deletion is attempted. Something like a find('count') or similar method to

Re: retrieve related model data

2010-03-23 Thread sebb86
Thanks for your help but i still dont get it working. sorry for my bad knowledge. In my addModel, i added this line: [code]var $actsAs = array('Containable');[/code] In my controller i tryed this to use contain with paginate: [code] $this-set('ports', $this-paginate('Port', array('fields' =

Re: Insert JavaScript with PHP included in $html-link, possible?

2010-03-22 Thread sebb86
logout Thanks very much for your help! (Also thanks to Miles J.) All of your recently created code works! :) I've diceded to take the last one. The purpose is to toggle (show and dont show) a data row. So i dont want to follow the link. Thanks again :) Greetings. Check out the new CakePHP

retrieve related model data

2010-03-22 Thread sebb86
Hello, I'd like to show the following things in my view (respectively in the field uplink_id in the view): attribute uplink_id from table ports with attribute schenker_number from table hardware_units. My problem are the associations, respectively i don't know the source code to retrieve the

Re: retrieve related model data

2010-03-22 Thread sebb86
cricket Thanks for your answer. Can i use recursive with pagination too? I need the pagination because of a sort auomatic in my view. And despite of debug, i really dont know how to retrive. I have to go the following way: uplink_id (table ports) - id (table ports) - hardware_unit_id (table

Re: (view) possible to select only one group of data inside the table?

2010-03-19 Thread sebb86
John thanks, your idea sounds good. So i think, i'd like to make the cell content a link and when i click on it, it should load a view. This view should only show datarows, with a equal cell (compared with the cell i clicked) inside. Is that understandable? [conroller action] function view() {

Re: Insert JavaScript with PHP included in $html-link, possible?

2010-03-19 Thread sebb86
logout Hello, when i try this, an error occurs: Parse error: syntax error, unexpected ')', expecting ',' or ';' Greetings 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

Insert JavaScript with PHP included in $html-link, possible?

2010-03-18 Thread sebb86
Hello, i want to isert a mixed Code (javascript and php) into my $html-link, but i don't know how to do this. [javascript with php code] javascript:void(0) onclick=toggleId('?php echo $zeile?'); [end code] [$html-link code] ?php echo $html-link($html-image(edit.png, array(alt = edit)), ---think

Re: Insert JavaScript with PHP included in $html-link, possible?

2010-03-18 Thread sebb86
Thanks but its not working. the address bar shows only -javascript:; Greetings. 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

(View) How to check a fields value in a foreach loop?

2010-03-12 Thread sebb86
Hello, in a foreach-loop to retrieve my data, i want to check a value from a field. So i can retrieve only the data, i want. I tryed: [code] foreach ($rows as $row = 'Model.field' = 0): [/code] In this example, i only want to retrieve all data-rows from model Model, which has value 0 in the

Re: (View) How to check a fields value in a foreach loop?

2010-03-12 Thread sebb86
Chris I want to do it in my view. Thanks a lot, it works great! :) Thanks thanks thanks! :) 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

(view) possible to select only one group of data inside the table?

2010-03-01 Thread sebb86
Hello, in my view, i have a table with data inside. For example, one column is named hardware_groups and the content of the cells is something like: printer, notebook, workstation, and so on. Is there a simple way to select, for example, only the notebooks? Hope my problem is understandable.

Re: simple question about CakePHP syntax

2010-03-01 Thread sebb86
WebbedIT, Cristian, majna Thanks a lot! :-) 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

Re: (views) Redirect where i came from

2010-03-01 Thread sebb86
Well, i forgot a problem. Now, i have my global add-function in my appController. But some add-views have drop-down fields to show the available foreign- keys. They additional use this code: [code] $this-set('foreignKey', $this-Model1-Model2-find('list')); [/code] So, can i extend the

Re: (views) Redirect where i came from

2010-03-01 Thread sebb86
John Thanks again!!! You solved it. :) Here is the code from one of my add-functions, which has a drop-down field with foreign-key elements. [code] function add() { parent::add(); $this-set('staffs', $this-HardwareUnit-Staff-find('list')); $this-set('rooms',

Re: (views) Redirect where i came from

2010-02-28 Thread sebb86
Paul In my inventory-management, every table/model has the need of an add- function. The models are, for example: rooms, locations, hardware_groups, hardware_units, mobile_radio_units, ports ... and so on. Furthermore, the add functions are equal to each other, expect, if there is an foreign-key

Re: How to set paginate - limit on the fly in my views?

2010-02-28 Thread sebb86
Thanks for your answers but i think it's to difficult for me to solve that. But thanks a lot! 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

Re: (views) Redirect where i came from

2010-02-28 Thread sebb86
John You only use {$this-modelClass} when you want to use the model instance. Thats it. Thanks very much! :) If someone other wants to use this, here is my final code (add function in app_controller): [code] function add() { if(!empty($this-data)) {

Re: (views) Redirect where i came from

2010-02-28 Thread sebb86
John You only use {$this-modelClass} when you want to use the model instance. Thats it. Thanks very much! :) If someone other wants to use this, here is my final code (add function in app_controller): [code] function add() { if(!empty($this-data)) {

Re: How to set paginate - limit on the fly in my views?

2010-02-27 Thread sebb86
Hello again WebbedIT, :-) i found something in the book and got some simple paginating links working in my views. [code] ?php echo $paginator-link('50', array('limit' = 50)); echo $paginator-link('75', array('limit' = 75)); echo $paginator-link('100', array('limit' = 100)); ? [/code] Is

Re: How to set paginate - limit on the fly in my views?

2010-02-27 Thread sebb86
Hello again WebbedIT, :-) i found something in the book and got some simple paginating links working in my views. [code] ?php echo $paginator-link('50', array('limit' = 50)); echo $paginator-link('75', array('limit' = 75)); echo $paginator-link('100', array('limit' = 100)); ? [/code] Is

Re: Possible to define a global add-function in the appController?

2010-02-26 Thread sebb86
John, Hello and thanks for your help. Are your controllers only using one model and the models is named the same as the controller (singular)? If that is so, you don't need to pass the model, just take your controllers name and Inflect it into a model name and use that! Yes, for example i have

Re: (views) Redirect where i came from

2010-02-26 Thread sebb86
Paul, hmm, it dont works :/ Could you look at the source please? And should i pass something to the view and write it in the brackets after function add? [controller code] function add() { if(!empty($this-data)) {

Re: Possible to define a global add-function in the appController?

2010-02-26 Thread sebb86
John, Jon Thanks a lot for helping me. Here is my working add-function in the app-controller if someone want to see an example: [code] function add() { if(!empty($this-data)) { if($this-{$this-modelClass}-save($this-data))

Re: (views) Redirect where i came from

2010-02-26 Thread sebb86
Well, i have a continative problem. Now, i have my global add-function in my appController. But some add-views have drop-down fields to show the available foreign- keys. So how can i extend the concerning controllers with my foreign-key drop-down field code? [code] $this-set('foreignKey',

Re: (views) Redirect where i came from

2010-02-26 Thread sebb86
Well, when i write down the complete add-function again (with additional foreign-key content) in the controllers, that need this additional content, it seems to work. But is it possible, to only add the foreign-key content to the controllers instead of the complete function? Check out the new

Re: (views) Redirect where i came from

2010-02-25 Thread sebb86
Hello, thanks for your help!!! But with this code, if i copyed it on the right places, i every time go back to the add view :/ But the destination should be the view where i came from. Hmm, or it's my mistake. Could you tell me, where i exactly have to post this code?: if

Possible to define a global add-function in the appController?

2010-02-25 Thread sebb86
Hello, i'd like to build a global-add function in the appController, so that all controllers can use it. is that possible? [App-Controller code:] function add($modell) { if(!empty($this-data)) { if($this-$modell-save($this-data))

(views) Redirect where i came from

2010-02-21 Thread sebb86
Hello, How can i redirect to a view, where i came from? Example: In view A, i click a button which opens the edit view B When the user completes the edit action and clicks on save, i want to redirect to view A. (with refer, the redirect goes to view B :( ) Thanks a lot, if someone can help!

How to set paginate - limit on the fly in my views?

2010-02-21 Thread sebb86
Hello, i'd like to manually set the limit-option on the fly in my views. So, for example, there could be 3 fields with 10, 25 and 50 or a input field to write the number. Thanks a lot if someone can help!!! Check out the new CakePHP Questions site http://cakeqs.org and help others with their

Re: (views) Redirect where i came from

2010-02-21 Thread sebb86
Hello, thanks, but i know this code. The problem is, that i have to redirect dynamical to the view, where i came from, because you can access some views from many other views. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You

Re: (views) Redirect where i came from

2010-02-21 Thread sebb86
Oh sorry, i don't want to edit, i want to add. I create an inventory management. When i'm in view hardware units, it's handy to add (via global drop down menu) a hardware group. This helps me to save time because without that global drop-down, i have to go to view hardware groups, then add once,

Possible to blank (hide) columns and show those again in a complete rendered view?

2010-02-21 Thread sebb86
Hello, in a complete rendered view, is it possible to blank (hide) columns and show those again (for example by clicking on column-caption like paginating)? Hope my question is understandable. Thanks very much if someone can help. Check out the new CakePHP Questions site http://cakeqs.org and

Re: How to include a button which links to a view?

2010-02-16 Thread sebb86
WebbedIT It works. Thanks a lot! :) 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

Re: how to disable bottom CakePHP section (query, errors, ...)

2010-02-16 Thread sebb86
Miles J Thank you very much, thats it. :) If others want to change the output-style, see here: http://book.cakephp.org/view/44/CakePHP-Core-Configuration-Variables Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this

how to disable bottom CakePHP section (query, errors, ...)

2010-02-14 Thread sebb86
Hello, how can i disable the CakePHP section (in this section are sql statements) on the bottom of each view? Thanks a lot! 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

Re: How to include a button which links to a view?

2010-02-12 Thread sebb86
Guillermo No, i'd like something like a pop-up warning window, which says: are you sure you want to delete?. Is this possible with an image-link? [code] ?php echo $html-image(delete.png, array(alt = delete, 'url' = array('controller' = 'hardware_units', 'action' = 'delete', 'id' =

simple question about CakePHP syntax

2010-02-12 Thread sebb86
Hello, i have a question about some signs. Is the use of this sample always equal to this 'sample' ? Thanks! 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

Re: confirm message

2010-02-12 Thread sebb86
arif, paulos Hello, i merged your ideas, this code works for me. It is a image, which links to a view and it outputs a confirm message with the current row number (id). I used this for a delete option. [code] ?php echo $html-link($html-image(delete.png, array(alt = delete, title = delete)),

Re: How to include a button which links to a view?

2010-02-12 Thread sebb86
Hello all, i finally got it working!!! :-) i merged some ideas i found in the google-group, so the following code works for me. It is an image, which links to a delete-view and it outputs a confirm message with the current row number (id). [code] ?php echo $html-link($html-image(delete.png,

Re: Retrieve data in table cells - how to avoid line breaks?

2010-02-11 Thread sebb86
Addition: It also would be nice, if the cell width would fit to the cell content. 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

Re: Retrieve data in table cells - how to avoid line breaks?

2010-02-11 Thread sebb86
Thanks. Furthermore, is it possible to create only a horizotal line under each complete data-row? 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

Re: Retrieve data in table cells - how to avoid line breaks?

2010-02-11 Thread sebb86
Thanks! That works for me: [code] style type=text/css th { white-space:nowrap; } /style [/code] Furthermore, is it possible to create only a horizontal line under each complete data row? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

Re: Retrieve data in table cells - how to avoid line breaks?

2010-02-11 Thread sebb86
. Mike Karthauser Brightstorm limited Tel: 07939252144 On 11 Feb 2010, at 07:19, sebb86 kahlc...@googlemail.com wrote: Hello, when i retrieve my data in table-cells, how can i avoid line breaks, for example in the table header? [retrieve-code] !-- table- (column-) captions

Re: How to include a button which links to a view?

2010-02-11 Thread sebb86
Jeremy Thanks for your answer. But actually i'd like to create a button (not a button-picture), which links to a view. I don't want to add a picture, because every button would have an other description. So is this possible to realize or must i create lots of pictures? ;-) Thanks. Check out the

Re: How to include a button which links to a view?

2010-02-11 Thread sebb86
Hello all, thanks for all your answers. After reading all your answers, i've decided to use a image, which links to a page. Could someone help me to add a warning-message, e.g. when i delete something??? Here is my image/link code from the view: [code] ?php echo $html-image(delete.png,

Re: How to include a button which links to a view?

2010-02-11 Thread sebb86
the session messages var in your layout On 11 February 2010 11:25, sebb86 kahlc...@googlemail.com wrote: Hello all, thanks for all your answers. After reading all your answers, i've decided to use a image, which links to a page. Could someone help me to add a warning-message, e.g. when i

Re: How to include a button which links to a view?

2010-02-11 Thread sebb86
Addition: this works with the $hrml-link but not with $html-image. :-( [code] ?php echo $html-link('Delete', array('action' = 'delete', 'id' = $hardware_unit['HardwareUnit']['id']), null, 'Sind sie sicher?'); ? [/code] Check out the new CakePHP Questions site http://cakeqs.org and help others

Retrieve data in table cells - how to avoid line breaks?

2010-02-10 Thread sebb86
Hello, when i retrieve my data in table-cells, how can i avoid line breaks, for example in the table header? [retrieve-code] !-- table- (column-) captions -- table tr th?php echo $paginator-sort(array('asc' ='id v', 'desc' ='id ^'), 'id'); ?/th th.../th

Re: how to validate two unique fields together?

2010-02-05 Thread sebb86
matzehahn Thanks for this link. Unfortunately this source don't worked with my edit-function (add worked). I tryed to change the source, but without success. BrendonKoz Thanks also for your help. I tryed some hours to get all this working but also without success. Fortunately, i found a

Re: HABTM view: how to retrieve data in extra column?

2010-02-04 Thread sebb86
John That's it. Thanks very much!!! :) Here is the complete code with columns, if needed: [code] !-- table- (column-) captions -- table tr th?php echo $paginator-sort(array('asc' ='id v', 'desc' ='id ^'), 'id'); ?/th th?php echo $paginator-sort(array('asc'

HABTM view: how to retrieve data in extra column?

2010-02-03 Thread sebb86
Hello, in my database, there is a HABTM association between model rooms and staffs. In my index-view of staffs, when i retrieve the data, i'd like to have an extra column for each datarow with all rooms, which belongs to the current staff(id). The join table contains room_id and staff_id and is

How to correct: double file-extension when i download something (media view)

2010-02-03 Thread sebb86
Hello, i almost solved my problem, but there is still a little fault. In one of my views i readout a database cell, with a text inside, e.g. 13.pdf (13.pdf = document_name). The little fault is, when i click on the text in the column (e.g. 13.pdf) a download-windows opens and the file i download

how to validate two unique fields together?

2010-02-03 Thread sebb86
Hello, my table **rooms** contains three fields: //id//, //building_id// and //room//. //Building_id// and //room// have to be UNIQUE together, because room 9 is in building 1 only one time but room 9 can also conained in building 2. The //building_id// in the view is realized as a drop-down

retrieve related model data (combination $hasOne and $belongsTo)

2010-02-03 Thread sebb86
Hello, I'd like to show the following things in my view (respectively in the field uplink_id in the view): attribute uplink_id from table ports with attribute schenker_number from table hardware_units. My problem are the associations, respectively i don't know the source code to retrieve the

  1   2   >