Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8497113
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:02:17+00:00 2026-06-11T00:02:17+00:00

I am having an issue with camelize/uncamelize ( \Phalcon\Text ) My understanding is that

  • 0

I am having an issue with camelize/uncamelize (\Phalcon\Text)

My understanding is that this function creates camel case strings like ucwords() or ucfirst()

The following tests reveal: This test passes:

camelize:

  • nice -> Nice
  • nice weather -> NiceWeather (Not sure if this should be like that. The space is stripped out. If this is the intended behavior then we need to add it to the docs)
  • nice_weather -> NiceWeather (Why does the underscore disappear? If this is the intended behavior then we need to add it to the docs)
  • nIcE -> Nice

uncamelize:

  • Nice -> nice
  • Nice Weather -> nice weather
  • Nice_Weather -> nice_weather
  • NIcE -> nic_e (the capital letter switches to underscore)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:02:19+00:00Added an answer on June 11, 2026 at 12:02 am

    The camelize/uncamelize methods are intended to convert strings with underscores to camel case ones. Specifically, these methods are used by Phalcon\Model to convert table names to their respective classes and vice versa. Thus, we can get the name of a table from the class name.

    Reference:
    http://docs.phalconphp.com/en/4.0/api/Phalcon_Text.html

    For Phalcon v5.0 the Phalcon\Text class has been removed and replaced with the Phalcon\Support\HelperFactory. The factory is registered in the DI container with the name helper.

    $helper = new Phalcon\Support\HelperFactory();
    $result = $helper->camelize('CocoBongo'); //coco_bongo
    

    One can also instantiate the Phalcon\Support\Helper\Camelize class directly

    $camelize = Phalcon\Support\Helper\Camelize();
    $result   = $camelize('CocoBongo'); // coco_bongo
    

    The same applies to uncamelize

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I having issue that content assistant / intellisense is working in methods such as
Hi guys I am having issue I have this query: SELECT * FROM useraccount
Having an issue here that I have tried everything I can think of but
Iam work on full text search build out. Im having issue on how to
I'm having issue converting this string to a decimal. I tried to follow the
I'm having issue with Action Listener of a JTable that being updated according the
We have a device that support SAE J1939 interface and having issue with finding
having issue with the explode, i have simple text file and each line is
I am having issue with loading a html textarea via ajax, essentially the text
I'm having issue assigning regex value to a string. Issue that I have is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.