Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 23,213
» Latest member: talentconnected
» Forum threads: 73,143
» Forum posts: 374,423

Full Statistics

Latest Threads
Proper Middleware support
Forum: CodeIgniter 4 Feature Requests
5 hours ago
» Replies: 5   » Views: 205
Modules constants
Forum: CodeIgniter 4 Support
10 hours ago
» Replies: 1   » Views: 81
A way to override the ins...
Forum: CodeIgniter 4 Feature Requests
10 hours ago
» Replies: 6   » Views: 346
CI version 4.1.1 Call to ...
Forum: Model-View-Controller
11 hours ago
» Replies: 1   » Views: 55
Pagination
Forum: CodeIgniter 4 Support
Today, 10:16 AM
» Replies: 2   » Views: 96
Codeigniter 3 debugger to...
Forum: CodeIgniter 3.x
Today, 09:09 AM
» Replies: 1   » Views: 75
Locate config folder outs...
Forum: CodeIgniter 4 Support
Today, 07:38 AM
» Replies: 0   » Views: 30
Redirect with get paramet...
Forum: CodeIgniter 4 Support
Today, 06:27 AM
» Replies: 2   » Views: 88
Coming Soon Page
Forum: General Help
Today, 06:15 AM
» Replies: 7   » Views: 145
Negotiating locales - nic...
Forum: Libraries & Helpers
Today, 05:11 AM
» Replies: 0   » Views: 57

 
  Problems with PHP5.
Posted by: El Forum - 06-25-2007, 09:32 PM - Forum: Archived Development & Programming - Replies (5)

[eluser]hrundel[/eluser]
Hi, all!
For become familiar with CI, I used PHP4 version and all worked great. But when I switched to PHP5 CI not worked. Even empty project with echo "test", in main controller not showed the string "test".
And problems not in php5 settings, since other my projects (not based on CI) worked perfectly on php5.
I'm used such code (as it described in documentation)

Code:
class Main extends Controller {
    function __construct()
    {
        parent::Controller();
    }
    function index()
    {
        echo "test";
    }
}
result is empty page in browser. I'm also looked at apache logs, and there no errors (all requests return 200 code) and in logs of CI no any errors.
What I do not such as needed?


  Any benchmarks available ?
Posted by: El Forum - 06-25-2007, 09:12 PM - Forum: Archived General Discussion - Replies (6)

[eluser]chrisranjana.com[/eluser]
Are there any benchmarks available for testing the increase in speed of coding using codeigniter ?

Say for example..taking a simple membership project as an example if a programmer uses PHP5 and does not use any other frameworks etc and codes it and if the same programmer used codeigniter what will be performance gain he will achieve ? Will he be able to complete the project faster if so by how much % ? etc


  How to create counter for website?
Posted by: El Forum - 06-25-2007, 07:51 PM - Forum: Archived Development & Programming - Replies (3)

[eluser]java[/eluser]
I want to put the counter in my web page such as:
Number of visitor online
Number of accessing
Number of accessing a day
How to do that?
Thanks for any response. :-)


  image manipulation
Posted by: El Forum - 06-25-2007, 07:28 PM - Forum: Archived Development & Programming - Replies (13)

[eluser]ikim[/eluser]
Hello,

Im making an application where you upload a picture and then the app creates a thumbnail.

However, I want the thumbnail to come out as 85px by 85px.

The resize currently shrinks to longest side to 85px but then Im left with something like 85 by 100.

I know I must resize and then maybe crop the image but what is the best way of doing this?

Thanks


  firefox opens 'save to/open with' dialog when viewing php files
Posted by: El Forum - 06-25-2007, 06:32 PM - Forum: Archived Development & Programming - Replies (4)

[eluser]jvittetoe[/eluser]
how do i fix this? my site opens fine in ie7. this is a localhost connection. i just reinstalled my apache server and set up the config correctly.


  I Just Gotta Say...
Posted by: El Forum - 06-25-2007, 05:54 PM - Forum: Archived General Discussion - Replies (6)

[eluser]Developer13[/eluser]
I just gotta say that this community is plain AWESOME.

Every time I get stuck with something, if I can't find the answer in the userguide or wiki, it's sure to be found here.

The regulars here are also so patient ... sometimes as I'm reading through the threads (which I do a ton, but I rarely post) I really applaud the patience of the regulars who kindly remind newcomers to read through the user guide and / or wiki and / or forums when they post a question that has been clearly documented... which they then respond that they did... at which point I highly doubt they did, or I doubt their readiness for OOP / MVC / frameworks...

CodeIgniter is the first framework that I've stuck with and learned. Up to that point, I was just using my own libraries that would have looked like the remnants of a rusty old car sitting in a junkyard if it were a car... I knew that I needed to mature into a framework of some sort. CodeIgniter's minimalistic yet powerful and extremely flexible approach really drew me in. It's all been smooth sailing ever since!

Anyhow, to all the people that have answered my questions time after time without ever knowing it -- THANKS A TON!!! You're appreciated much more than you know.

Long live CodeIgniter!


  Active Records
Posted by: El Forum - 06-25-2007, 02:39 PM - Forum: Archived General Discussion - Replies (16)

[eluser]Peter Goodman[/eluser]
So, I'm a PHP developer and I've been working on my own PHP5 framework. For work though, I work with the CodeIgniter framework. I've found that the current "active records" system is inadequate. So, I've essentially translated code from my framework to work with CI. I'm about to start testing it out, but if anyone is interested, I will be releasing it (if I get it to work) as an extension/library/thingy.

Here's how it works (from within a controller)

Code:
// simple updating
$post = $this->getFinder('model_name')->find(1); // find something by its primary key
$post->name = 'hello';
$post->body = 'mooo';
$post->save();

// simple inserting
$post = $this->getFinder('model_name')->createRecord();
...
$post->save();

// given a table relation specified by hasMany or hasOne in a model definition, other
// table rows can be accessed as:
$post->replies;
// where 'replies' is an automatically added table.

This only gives a small idea of the neat features I supply. If anyone is interested, please say so Smile


  small problem with form validation
Posted by: El Forum - 06-25-2007, 02:24 PM - Forum: Archived Development & Programming - Replies (1)

[eluser]johnman[/eluser]
when you have 2 fields which should match and you trim them both, they should only be compare After they are both trimmed. If you enter 'aaaaa ' into the first one and 'aaaaa ' into the second one, they should match after trimming, but this doesnt't happen.


  Little question about output
Posted by: El Forum - 06-25-2007, 01:59 PM - Forum: Archived Development & Programming - Replies (8)

[eluser]VivaUkraine[/eluser]
In my controller i've code for retriving news from database :

Code:
$content = $this->db->get('news');

and i view i've a code like this.
Code:
<?foreach ($content->result() as $row):?>        
            <div class="item">
                
                <h1>&lt;?=$row->title?&gt;</h1>
                <div class="descr">&lt;?=$row->date?&gt;</div>
                &lt;?=$row->content?&gt;
                </div>
        &lt;?php endforeach; ?&gt;

The problem is that i want to do some replacements in $row->content variable. For ex. i want to replace all '&lt;code&gt;' with '<code>' and all '&lt;/code&gt;' with '</code>' tags. I dont want to do this in view file.... How can i do it in Controller ?


  Email verf.
Posted by: El Forum - 06-25-2007, 10:28 AM - Forum: Archived Development & Programming - Replies (6)

[eluser]Lol![/eluser]
Hello!
I have the code:

Code:
&lt;?
echo form_open('cliente/cadastro');

echo form_hidden('id_cliente', $cliente['id_cliente']);

$page_redirect = isset($page_redirect) ? $page_redirect : 'login_ok';
echo form_hidden('redirect', $page_redirect);
?&gt;
<table align='center'>
  <tr>
    <td>* Nome:</td>
    <td>&lt;?=form_input('nome', $cliente['nome']);?&gt;</td>
  </tr>
  <tr>
    <td>Nascimento:</td>
    <td>&lt;?=form_input('nascimento',$cliente['nascimento']);?&gt;</td>
  </tr>
  <tr>
    <td>Endereço:</td>
    <td>&lt;?=form_input('endereco', $cliente['endereco']);?&gt;</td>
  </tr>
  <tr>
    <td>Complemento:</td>
    <td>&lt;?=form_input('complemento',$cliente['complemento']);?&gt;</td>
  </tr>
  <tr>
    <td>Bairro:</td>
    <td>&lt;?=form_input('bairro', $cliente['bairro']);?&gt;</td>
  </tr>
  <tr>
    <td>CEP:</td>
    <td>&lt;?=form_input('cep', $cliente['cep']);?&gt;</td>
  </tr>
  <tr>
    <td>Cidade:</td>
    <td>&lt;?=form_input('cidade', $cliente['cidade']);?&gt;</td>
  </tr>
  <tr>
    <td>Estado:</td>
    <td>&lt;?=form_input('estado', $cliente['estado']);?&gt;</td>
  </tr>
  <tr>
    <td>* DDD:</td>
    <td>&lt;?=form_input('ddd_tel', $cliente['ddd_tel']);?&gt;</td>
  </tr>
  <tr>
    <td>* Telefone:</td><td>&lt;?=form_input('telefone', $cliente['telefone']);?&gt;</td>
  </tr>
  <tr>
    <td>DDD:</td>
    <td>&lt;?=form_input('ddd_cel', $cliente['ddd_cel']);?&gt;</td>
  </tr>
  <tr>
    <td>Celular:</td>
    <td>&lt;?=form_input('celular', $cliente['celular']);?&gt;</td>
  </tr>
  <tr>
    <td>* Email:</td>
    <td>&lt;?=form_input('email', $cliente['email']);?&gt;</td>
  </tr>
  <tr>
    <td>CPF/CNPJ:</td>
    <td>&lt;?=form_input('cpf_cnpj', $cliente['cpf_cnpj']);?&gt;</td>
  </tr>
  <tr>
    <td>RG/Insc.Est.:</td>
    <td>&lt;?=form_input('rg_inscest', $cliente['rg_inscest']);?&gt;</td>
  </tr>
  <tr>
    <td>* Senha:</td>
    <td>&lt;?=form_password('senha', $cliente['senha']);?&gt;</td>
  </tr>
  <tr>
    <td align='center'>&lt;?=form_submit('', 'Salvar');?&gt;</td><td>Os campos com * são obrigatórios</td>
  </tr>
</table>

&lt;?
echo form_close()
?&gt;

How I call an email verification at the "* Email" form?


See ya!



  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.